Remove deprecated portage.digestParseFile
authorSebastian Luther <SebastianLuther@gmx.de>
Wed, 11 Aug 2010 05:54:25 +0000 (07:54 +0200)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Aug 2010 07:47:22 +0000 (00:47 -0700)
pym/portage/__init__.py
pym/portage/_deprecated.py

index e7cec02cfba04f6de9f2bc4a9ed641830c2c72de..f9c9eb7187e731605905c6251061820f6ff4a430 100644 (file)
@@ -132,7 +132,7 @@ try:
                        'suffix_value@endversion,pkgcmp,pkgsplit,vercmp,ververify',
                'portage.xpak',
                'portage._deprecated:dep_virtual,' + \
-                       'digestParseFile,getvirtuals,pkgmerge',
+                       'getvirtuals,pkgmerge',
        )
 
        import portage.const
index 7b9abec4e11f0f7a5bd3eade11c3d3553bf1d49f..ea40c2dde553e1f4faa22914ff91a95e0c1497f4 100644 (file)
@@ -15,26 +15,6 @@ from portage.localization import _
 from portage.manifest import Manifest
 from portage.util import writemsg, writemsg_stdout
 
-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
-       and returns a dict with the filenames as keys and {checksumkey:checksum}
-       as the values.
-       DEPRECATED: this function is now only a compability wrapper for
-                   portage.manifest.Manifest()."""
-
-       warnings.warn("portage.digestParseFile() is deprecated",
-               DeprecationWarning, stacklevel=2)
-
-       mysplit = myfilename.split(os.sep)
-       if mysplit[-2] == "files" and mysplit[-1].startswith("digest-"):
-               pkgdir = os.sep + os.sep.join(mysplit[:-2]).strip(os.sep)
-       elif mysplit[-1] == "Manifest":
-               pkgdir = os.sep + os.sep.join(mysplit[:-1]).strip(os.sep)
-
-       return Manifest(pkgdir, None).getDigests()
-
 def dep_virtual(mysplit, mysettings):
        "Does virtual dependency conversion"
        warnings.warn("portage.dep_virtual() is deprecated",