From 8e3f935090fe8680fea7eb5980142e4bb3e6e88e Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Thu, 14 Jul 2011 13:27:44 -0500 Subject: [PATCH] Change default cache directory to '/var/cache/revdep-rebuild' --- pym/gentoolkit/revdep_rebuild/cache.py | 5 +++-- pym/gentoolkit/revdep_rebuild/settings.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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, -- 2.26.2