Use paths from portage.const instead of hardcoded versions.
authorZac Medico <zmedico@gentoo.org>
Mon, 23 Jun 2008 18:22:07 +0000 (18:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 23 Jun 2008 18:22:07 +0000 (18:22 -0000)
(branches/prefix r10765)

svn path=/main/trunk/; revision=10766

bin/repoman

index 3a1d5fa07785e667f9684fa9a3a93265b83c9534..be8730f6a71f834100e72905c8d31be3245fe5f7 100755 (executable)
@@ -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()