Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Zac Medico (zmedico)" <zmedico@g.o>
Subject: portage r11683 - main/trunk/pym/portage
Date: Sun, 12 Oct 2008 20:57:00 +0000
Author: zmedico
Date: 2008-10-12 20:57:00 +0000 (Sun, 12 Oct 2008)
New Revision: 11683

Modified:
   main/trunk/pym/portage/__init__.py
Log:
Inside fetch(), don't call pkg_nofetch when in parallel-fetch mode since
it will get call again later anyway.


Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py	2008-10-12 19:59:32 UTC (rev 11682)
+++ main/trunk/pym/portage/__init__.py	2008-10-12 20:57:00 UTC (rev 11683)
@@ -4068,16 +4068,21 @@
 					"ebuild's files must be downloaded"
 				print "!!! manually.  See the comments in" + \
 					" the ebuild for more information.\n"
-				ebuild_phase = mysettings.get("EBUILD_PHASE")
-				try:
-					mysettings["EBUILD_PHASE"] = "nofetch"
-					spawn(_shell_quote(EBUILD_SH_BINARY) + \
-						" nofetch", mysettings)
-				finally:
-					if ebuild_phase is None:
-						mysettings.pop("EBUILD_PHASE", None)
-					else:
-						mysettings["EBUILD_PHASE"] = ebuild_phase
+				if not parallel_fetchonly:
+					# To spawn pkg_nofetch requires PORTAGE_BUILDDIR for
+					# ensuring sane $PWD (bug #239560) and storing elog
+					# messages. Therefore, calling code needs to ensure that
+					# PORTAGE_BUILDDIR is already clean and locked here.
+					ebuild_phase = mysettings.get("EBUILD_PHASE")
+					try:
+						mysettings["EBUILD_PHASE"] = "nofetch"
+						spawn(_shell_quote(EBUILD_SH_BINARY) + \
+							" nofetch", mysettings)
+					finally:
+						if ebuild_phase is None:
+							mysettings.pop("EBUILD_PHASE", None)
+						else:
+							mysettings["EBUILD_PHASE"] = ebuild_phase
 			elif not filedict[myfile]:
 				writemsg("Warning: No mirrors available for file" + \
 					" '%s'\n" % (myfile), noiselevel=-1)



Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in gnome-extra/evolution-exchange/files: evolution-exchange-2.22.3-exchange-contact.patch
Next by thread:
portage r11684 - main/trunk/bin
Previous by date:
gentoo-x86 commit in gnome-extra/evolution-exchange/files: evolution-exchange-2.22.3-exchange-contact.patch
Next by date:
portage r11684 - main/trunk/bin


Updated Mar 07, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.