commit:     17d016032df3a9af9cbdd8c6a1eec800fb4bd2f1
Author:     Slawek Lis <slis <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  5 11:27:54 2014 +0000
Commit:     Slawek Lis <slis <AT> gentoo <DOT> org>
CommitDate: Wed Nov  5 11:27:54 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=17d01603

updated default cache location for non-root

---
 pym/gentoolkit/revdep_rebuild/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/gentoolkit/revdep_rebuild/settings.py 
b/pym/gentoolkit/revdep_rebuild/settings.py
index cadd5f2..744b730 100644
--- a/pym/gentoolkit/revdep_rebuild/settings.py
+++ b/pym/gentoolkit/revdep_rebuild/settings.py
@@ -17,7 +17,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': os.path.join(portage.root, 
'/var/cache/revdep-rebuild'), #cache default location
+               'DEFAULT_TMP_DIR': os.path.join(portage.root, 
'/tmp/revdep-rebuild' if os.getgid() else '/var/cache/revdep-rebuild'), #cache 
default location
 
                # number of maximum allowed files to be parsed at once
                'CMD_MAX_ARGS': 1000,

Reply via email to