Change default cache directory to '/var/cache/revdep-rebuild'
authorPaul Varner <fuzzyray@gentoo.org>
Thu, 14 Jul 2011 18:27:44 +0000 (13:27 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Thu, 14 Jul 2011 18:27:44 +0000 (13:27 -0500)
pym/gentoolkit/revdep_rebuild/cache.py
pym/gentoolkit/revdep_rebuild/settings.py

index 2bb9f591c489a210233c36894d32c92c111ee97d..d62fe12e0f9c58d710f6a1d87cad62699abe4eb4 100644 (file)
@@ -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')
index c0e5aa79be526344c0b3759ffddfba9f2f279916..3c8b9d3415309816532d892f7f60b3c3024e3aa0 100644 (file)
@@ -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,