__all__ = ['digestcheck']
+import warnings
+
from portage import os, _encodings, _unicode_decode
from portage.exception import DigestException, FileNotFound
from portage.localization import _
from portage.output import EOutput
from portage.util import writemsg
-def digestcheck(myfiles, mysettings, strict=0, justmanifest=0):
+def digestcheck(myfiles, mysettings, strict=False, justmanifest=None):
"""
Verifies checksums. Assumes all files have been downloaded.
@rtype: int
@returns: 1 on success and 0 on failure
"""
+
+ if justmanifest is not None:
+ warnings.warn("The justmanifest parameter of the " + \
+ "portage.package.ebuild.digestcheck.digestcheck()" + \
+ " function is now unused.",
+ DeprecationWarning, stacklevel=2)
+ justmanifest = None
+
if mysettings.get("EBUILD_SKIP_MANIFEST") == "1":
return 1
pkgdir = mysettings["O"]