[improvement] the temp dir used now has a different name if you launch bauh as the root user to avoid permissioning issues

This commit is contained in:
Vinícius Moreira
2020-02-12 14:41:30 -03:00
parent 9d373adfcc
commit 584064f214
7 changed files with 14 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
import os
from pathlib import Path
from bauh.api.constants import CACHE_PATH, CONFIG_PATH
from bauh.api.constants import CACHE_PATH, CONFIG_PATH, TEMP_DIR
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_DIR = '/tmp/bauh/aur'
BUILD_DIR = '{}/aur'.format(TEMP_DIR)
ARCH_CACHE_PATH = CACHE_PATH + '/arch'
CATEGORIES_CACHE_DIR = ARCH_CACHE_PATH + '/categories'
CATEGORIES_FILE_PATH = CATEGORIES_CACHE_DIR + '/aur.txt'