summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-23 18:22:07 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-23 18:22:07 +0000
commit7c35646f676ce392c22ad4458020e3b8ea814379 (patch)
tree3e549c8e2cbc8f717fa7c58e77ef6127d4b0bfe1
parent881a3de8afdcfdcb51170eca77acd685cb4021e8 (diff)
downloadportage-7c35646f676ce392c22ad4458020e3b8ea814379.tar.gz
portage-7c35646f676ce392c22ad4458020e3b8ea814379.tar.bz2
portage-7c35646f676ce392c22ad4458020e3b8ea814379.zip
Use paths from portage.const instead of hardcoded versions.
(branches/prefix r10765) svn path=/main/trunk/; revision=10766
-rwxr-xr-xbin/repoman4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman
index 3a1d5fa07..be8730f6a 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -418,10 +418,10 @@ def last(full=False):
Doesn't return (invokes sys.exit()
"""
#Retrieve and unpickle stats and fails from saved files
- savedf=open('/var/cache/edb/repo.stats','r')
+ savedf=open(os.path.join(portage.const.CACHE_PATH, 'repo.stats'),'r')
stats = pickle.load(savedf)
savedf.close()
- savedf=open('/var/cache/edb/repo.fails','r')
+ savedf=open(os.path.join(portage.const.CACHE_PATH, 'repo.fails'),'r')
fails = pickle.load(savedf)
savedf.close()