aboutsummaryrefslogtreecommitdiffstats
path: root/pym/portage/package/ebuild/digestcheck.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-06 21:35:45 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-06 21:35:45 -0700
commite2992bf17858032c41f60d1936e44b2f899ed267 (patch)
tree5df31c0a8cd7ac8b1ef5c412ccc3ea5f7c906294 /pym/portage/package/ebuild/digestcheck.py
parentadd FEATURES=allow-missing-manifests (diff)
downloadgentoo-portage-e2992bf17858032c41f60d1936e44b2f899ed267.tar.xz
gentoo-portage-e2992bf17858032c41f60d1936e44b2f899ed267.zip
digestcheck: support allow-missing-manifests
Also, update the man page.
Diffstat (limited to 'pym/portage/package/ebuild/digestcheck.py')
-rw-r--r--pym/portage/package/ebuild/digestcheck.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/digestcheck.py b/pym/portage/package/ebuild/digestcheck.py
index 68ce1f5657a..e4432f186f3 100644
--- a/pym/portage/package/ebuild/digestcheck.py
+++ b/pym/portage/package/ebuild/digestcheck.py
@@ -28,6 +28,7 @@ def digestcheck(myfiles, mysettings, strict=False, justmanifest=None):
if mysettings.get("EBUILD_SKIP_MANIFEST") == "1":
return 1
+ allow_missing = "allow-missing-manifests" in mysettings.features
pkgdir = mysettings["O"]
manifest_path = os.path.join(pkgdir, "Manifest")
if not os.path.exists(manifest_path):
@@ -86,6 +87,10 @@ def digestcheck(myfiles, mysettings, strict=False, justmanifest=None):
writemsg(_("!!! Got: %s\n") % e.value[2], noiselevel=-1)
writemsg(_("!!! Expected: %s\n") % e.value[3], noiselevel=-1)
return 0
+ if allow_missing:
+ # In this case we ignore any missing digests that
+ # would otherwise be detected below.
+ return 1
# Make sure that all of the ebuilds are actually listed in the Manifest.
for f in os.listdir(pkgdir):
pf = None
@@ -96,8 +101,8 @@ def digestcheck(myfiles, mysettings, strict=False, justmanifest=None):
os.path.join(pkgdir, f), noiselevel=-1)
if strict:
return 0
- """ epatch will just grab all the patches out of a directory, so we have to
- make sure there aren't any foreign files that it might grab."""
+ # epatch will just grab all the patches out of a directory, so we have to
+ # make sure there aren't any foreign files that it might grab.
filesdir = os.path.join(pkgdir, "files")
for parent, dirs, files in os.walk(filesdir):