Remove the "db" parameter from digestgen() because it's not needed.
authorZac Medico <zmedico@gentoo.org>
Tue, 11 Apr 2006 02:50:16 +0000 (02:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 11 Apr 2006 02:50:16 +0000 (02:50 -0000)
svn path=/main/trunk/; revision=3121

pym/portage.py

index 0c0fe13fe2171f28dd99c8572e1659097f2097ad..8b661346748f3d87ea2d40a82d9101146a64512c 100644 (file)
@@ -2059,7 +2059,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                        return 0
        return 1
 
-def digestgen(myarchives,mysettings,db=None,overwrite=1,manifestonly=0):
+def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0):
        """generates digest file if missing.  Assumes all files are available.  If
        overwrite=0, the digest will only be created if it doesn't already exist.
        DEPRECATED: this now only is a compability wrapper for 
@@ -2070,9 +2070,6 @@ def digestgen(myarchives,mysettings,db=None,overwrite=1,manifestonly=0):
        #       (e.g. cvs stuff should be in ebuild(1) and/or repoman)
        # TODO: error/exception handling
 
-       if db is None:
-               db = portagetree().dbapi
-
        global settings
        mf = Manifest(mysettings["O"], FetchlistDict(mysettings["O"], mysettings), mysettings["DISTDIR"])
        mf.create(assumeDistfileHashes=True)