1 |
commit: 8e3f935090fe8680fea7eb5980142e4bb3e6e88e |
2 |
Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 14 18:27:44 2011 +0000 |
4 |
Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 14 18:27:44 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=8e3f9350 |
7 |
|
8 |
Change default cache directory to '/var/cache/revdep-rebuild' |
9 |
|
10 |
--- |
11 |
pym/gentoolkit/revdep_rebuild/cache.py | 5 +++-- |
12 |
pym/gentoolkit/revdep_rebuild/settings.py | 2 +- |
13 |
2 files changed, 4 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/pym/gentoolkit/revdep_rebuild/cache.py b/pym/gentoolkit/revdep_rebuild/cache.py |
16 |
index 2bb9f59..d62fe12 100644 |
17 |
--- a/pym/gentoolkit/revdep_rebuild/cache.py |
18 |
+++ b/pym/gentoolkit/revdep_rebuild/cache.py |
19 |
@@ -52,8 +52,9 @@ def save_cache(logger, to_save=None, temp_path=DEFAULTS['DEFAULT_TMP_DIR']): |
20 |
if to_save is None: |
21 |
to_save = {} |
22 |
|
23 |
- if not os.path.exists(temp_path): |
24 |
- os.makedirs(temp_path) |
25 |
+# TODO: Don't blindly make the cache directory, see Bug 203414 |
26 |
+# if not os.path.exists(temp_path): |
27 |
+# os.makedirs(temp_path) |
28 |
|
29 |
try: |
30 |
_file = open(os.path.join(temp_path, 'timestamp'), 'w') |
31 |
|
32 |
diff --git a/pym/gentoolkit/revdep_rebuild/settings.py b/pym/gentoolkit/revdep_rebuild/settings.py |
33 |
index c0e5aa7..3c8b9d3 100644 |
34 |
--- a/pym/gentoolkit/revdep_rebuild/settings.py |
35 |
+++ b/pym/gentoolkit/revdep_rebuild/settings.py |
36 |
@@ -14,7 +14,7 @@ DEFAULTS = { |
37 |
'DEFAULT_ENV_FILE': os.path.join(portage.root, 'etc/profile.env'), |
38 |
'REVDEP_CONFDIR': os.path.join(portage.root, 'etc/revdep-rebuild/'), |
39 |
'PKG_DIR': os.path.join(portage.root, 'var/db/pkg/'), |
40 |
- 'DEFAULT_TMP_DIR': '/tmp/revdep-rebuild', #cache default location |
41 |
+ 'DEFAULT_TMP_DIR': '/var/cache/revdep-rebuild', #cache default location |
42 |
|
43 |
# number of maximum allowed files to be parsed at once |
44 |
'CMD_MAX_ARGS': 1000, |