From 110746d070934150c2d0346aeb8d53334328540a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 20 May 2007 21:28:53 +0000 Subject: [PATCH] In fetch(), don't try to parse digests unless the "O" variable is defined. svn path=/main/trunk/; revision=6561 --- pym/portage/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index f58438158..664f0a7d7 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2405,8 +2405,13 @@ 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] - mydigests = Manifest( - mysettings["O"], mysettings["DISTDIR"]).getTypeDigests("DIST") + pkgdir = mysettings.get("O") + if pkgdir: + mydigests = Manifest( + pkgdir, mysettings["DISTDIR"]).getTypeDigests("DIST") + else: + # no digests because fetch was not called for a specific package + mydigests = {} fsmirrors = [] for x in range(len(mymirrors)-1,-1,-1): -- 2.26.2