From: Zac Medico Date: Mon, 23 Jun 2008 18:22:07 +0000 (-0000) Subject: Use paths from portage.const instead of hardcoded versions. X-Git-Tag: v2.2_rc2~350 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c35646f676ce392c22ad4458020e3b8ea814379;p=portage.git Use paths from portage.const instead of hardcoded versions. (branches/prefix r10765) svn path=/main/trunk/; revision=10766 --- 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()