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')
'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,