digestcheck: more allow-missing-manifests
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Jul 2011 07:00:04 +0000 (00:00 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Jul 2011 07:00:04 +0000 (00:00 -0700)
pym/portage/package/ebuild/digestcheck.py

index e4432f186f365359b44790bb4817cd16444530e1..9354bfe45ff32e0b6cb57f6e15ee30da02f521e3 100644 (file)
@@ -32,6 +32,8 @@ def digestcheck(myfiles, mysettings, strict=False, justmanifest=None):
        pkgdir = mysettings["O"]
        manifest_path = os.path.join(pkgdir, "Manifest")
        if not os.path.exists(manifest_path):
+               if allow_missing:
+                       return 1
                writemsg(_("!!! Manifest file not found: '%s'\n") % manifest_path,
                        noiselevel=-1)
                if strict: