From 251567a34c7511f681821e23a9a6e38526101986 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Jun 2008 03:38:09 +0000 Subject: Bug #225285 - Add a --skip-manifest option that disables all interaction with the manifest. svn path=/main/branches/2.1.2/; revision=10719 --- pym/portage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage.py b/pym/portage.py index 77ce475bd..dc0acecba 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3309,8 +3309,9 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", if try_mirrors: mymirrors += [x.rstrip("/") for x in mysettings["GENTOO_MIRRORS"].split() if x] + skip_manifest = mysettings.get("EBUILD_SKIP_MANIFEST") == "1" pkgdir = mysettings.get("O") - if pkgdir is not None: + if not (pkgdir is None or skip_manifest): mydigests = Manifest( pkgdir, mysettings["DISTDIR"]).getTypeDigests("DIST") else: @@ -4076,6 +4077,8 @@ def digestcheck(myfiles, mysettings, strict=0, justmanifest=0): """Verifies checksums. Assumes all files have been downloaded. DEPRECATED: this is now only a compability wrapper for portage_manifest.Manifest().""" + if mysettings.get("EBUILD_SKIP_MANIFEST") == "1": + return 1 pkgdir = mysettings["O"] manifest_path = os.path.join(pkgdir, "Manifest") if not os.path.exists(manifest_path): -- cgit v1.2.3-1-g7c22