mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 02:37:48 +08:00
Default the cache directory to the "mbs" directory under tempfile.gettempdir()
This commit is contained in:
@@ -90,8 +90,6 @@ class BaseConfiguration(object):
|
||||
# Disable Client Authorization
|
||||
NO_AUTH = False
|
||||
|
||||
CACHE_DIR = "~/modulebuild/cache"
|
||||
|
||||
|
||||
class TestConfiguration(BaseConfiguration):
|
||||
BUILD_LOGS_DIR = "/tmp"
|
||||
@@ -134,6 +132,7 @@ class ProdConfiguration(BaseConfiguration):
|
||||
|
||||
|
||||
class LocalBuildConfiguration(BaseConfiguration):
|
||||
CACHE_DIR = "~/modulebuild/cache"
|
||||
LOG_LEVEL = "debug"
|
||||
MESSAGING = "in_memory"
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ import os
|
||||
import pkg_resources
|
||||
import re
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
from six import string_types
|
||||
|
||||
@@ -146,7 +147,11 @@ class Config(object):
|
||||
"desc": "Default dist-tag prefix for built modules.",
|
||||
},
|
||||
"polling_interval": {"type": int, "default": 0, "desc": "Polling interval, in seconds."},
|
||||
"cache_dir": {"type": Path, "default": "~/modulebuild/cache", "desc": "Cache directory"},
|
||||
"cache_dir": {
|
||||
"type": Path,
|
||||
"default": os.path.join(tempfile.gettempdir(), "mbs"),
|
||||
"desc": "Cache directory"
|
||||
},
|
||||
"mbs_url": {
|
||||
"type": str,
|
||||
"default": "https://mbs.fedoraproject.org/module-build-service/1/module-builds/",
|
||||
|
||||
Reference in New Issue
Block a user