diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-07-06 21:35:45 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-07-06 21:35:45 -0700 |
commit | e2992bf17858032c41f60d1936e44b2f899ed267 (patch) | |
tree | 5df31c0a8cd7ac8b1ef5c412ccc3ea5f7c906294 /pym | |
parent | 2ba193f01310cf2980dab881bff58e7bfeb33ea3 (diff) | |
download | portage-e2992bf17858032c41f60d1936e44b2f899ed267.tar.gz portage-e2992bf17858032c41f60d1936e44b2f899ed267.tar.bz2 portage-e2992bf17858032c41f60d1936e44b2f899ed267.zip |
digestcheck: support allow-missing-manifests
Also, update the man page.
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/package/ebuild/digestcheck.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/digestcheck.py b/pym/portage/package/ebuild/digestcheck.py index 68ce1f565..e4432f186 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): |