From: Paul Varner Date: Thu, 14 Jul 2011 18:27:44 +0000 (-0500) Subject: Change default cache directory to '/var/cache/revdep-rebuild' X-Git-Tag: gentoolkit-0.3.0.5~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e3f935090fe8680fea7eb5980142e4bb3e6e88e;p=gentoolkit.git Change default cache directory to '/var/cache/revdep-rebuild' --- diff --git a/pym/gentoolkit/revdep_rebuild/cache.py b/pym/gentoolkit/revdep_rebuild/cache.py index 2bb9f59..d62fe12 100644 --- a/pym/gentoolkit/revdep_rebuild/cache.py +++ b/pym/gentoolkit/revdep_rebuild/cache.py @@ -52,8 +52,9 @@ def save_cache(logger, to_save=None, temp_path=DEFAULTS['DEFAULT_TMP_DIR']): if to_save is None: to_save = {} - if not os.path.exists(temp_path): - os.makedirs(temp_path) +# TODO: Don't blindly make the cache directory, see Bug 203414 +# if not os.path.exists(temp_path): +# os.makedirs(temp_path) try: _file = open(os.path.join(temp_path, 'timestamp'), 'w') diff --git a/pym/gentoolkit/revdep_rebuild/settings.py b/pym/gentoolkit/revdep_rebuild/settings.py index c0e5aa7..3c8b9d3 100644 --- a/pym/gentoolkit/revdep_rebuild/settings.py +++ b/pym/gentoolkit/revdep_rebuild/settings.py @@ -14,7 +14,7 @@ DEFAULTS = { 'DEFAULT_ENV_FILE': os.path.join(portage.root, 'etc/profile.env'), 'REVDEP_CONFDIR': os.path.join(portage.root, 'etc/revdep-rebuild/'), 'PKG_DIR': os.path.join(portage.root, 'var/db/pkg/'), - 'DEFAULT_TMP_DIR': '/tmp/revdep-rebuild', #cache default location + 'DEFAULT_TMP_DIR': '/var/cache/revdep-rebuild', #cache default location # number of maximum allowed files to be parsed at once 'CMD_MAX_ARGS': 1000,