summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-18 04:38:32 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-18 04:38:32 +0000
commitf619d5f9468d1d0eaab8eadf9fe11b0492094bbf (patch)
treec1adf4b2064959965a4c97acad353fccc06fffd8 /pym
parent8f360f92e67301f4621dd30cd5e3e2c0c6bdebd6 (diff)
downloadportage-f619d5f9468d1d0eaab8eadf9fe11b0492094bbf.tar.gz
portage-f619d5f9468d1d0eaab8eadf9fe11b0492094bbf.tar.bz2
portage-f619d5f9468d1d0eaab8eadf9fe11b0492094bbf.zip
Bug #225285 - Add a --skip-manifest option that disables all interaction
with the manifest. svn path=/main/trunk/; revision=10712
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6b35f1791..901edf924 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3296,8 +3296,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:
@@ -4063,6 +4064,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):