summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-11 02:57:41 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-11 02:57:41 +0000
commitc44d14cb21db43144799cb6a8607fc7aafaf07fa (patch)
tree3f19626cdcd16a56bc392c74612df1a1b30f933e
parenteb958ca50ea48948407a20e98984591852e21c0a (diff)
downloadportage-c44d14cb21db43144799cb6a8607fc7aafaf07fa.tar.gz
portage-c44d14cb21db43144799cb6a8607fc7aafaf07fa.tar.bz2
portage-c44d14cb21db43144799cb6a8607fc7aafaf07fa.zip
Remove the "db" parameter from digestParseFile() because it's not needed.
svn path=/main/trunk/; revision=3122
-rw-r--r--pym/portage.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 8b6613467..7bcfacfa0 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2089,7 +2089,7 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0):
return 1
-def digestParseFile(myfilename,mysettings=None,db=None):
+def digestParseFile(myfilename, mysettings=None):
"""(filename) -- Parses a given file for entries matching:
<checksumkey> <checksum_hex_string> <filename> <filesize>
Ignores lines that don't start with a valid checksum identifier
@@ -2104,9 +2104,8 @@ def digestParseFile(myfilename,mysettings=None,db=None):
elif mysplit[-1] == "Manifest":
pkgdir = os.sep + os.sep.join(mysplit[:-1]).strip(os.sep)
- if db is None:
- db = portagetree().dbapi
if mysettings is None:
+ global settings
mysettings = config(clone=settings)
mf = Manifest(pkgdir, FetchlistDict(pkgdir, mysettings), mysettings["DISTDIR"])