summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-27 01:05:14 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-27 01:05:14 +0000
commite6a1e83f11faf34369eb97c6d4e35dbe29ee6d6c (patch)
tree9541cf2710df9ea49f9a72f4fdf11ab52f0bac16 /pym
parentc1f5f7364a006d8abb94b65eae302c1025e5782d (diff)
downloadportage-e6a1e83f11faf34369eb97c6d4e35dbe29ee6d6c.tar.gz
portage-e6a1e83f11faf34369eb97c6d4e35dbe29ee6d6c.tar.bz2
portage-e6a1e83f11faf34369eb97c6d4e35dbe29ee6d6c.zip
Make sure that fetch errors are reported even when --quiet is being used.
svn path=/main/trunk/; revision=3422
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index a6945e073..420ed1434 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2136,7 +2136,10 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
# check if we can actually write to the directory/existing file.
if fetched!=2 and os.path.exists(mysettings["DISTDIR"]+"/"+myfile) != \
os.access(mysettings["DISTDIR"]+"/"+myfile, os.W_OK) and not fetch_to_ro:
- writemsg(red("***")+" Lack write access to %s, failing fetch\n" % str(mysettings["DISTDIR"]+"/"+myfile))
+ writemsg( red("***") + \
+ " Lack write access to %s, failing fetch\n" % \
+ os.path.join(mysettings["DISTDIR"], myfile),
+ noiselevel=-1)
fetched=0
break
elif fetched!=2:
@@ -2249,7 +2252,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
if listonly:
writemsg("\n")
if (fetched!=2) and not listonly:
- writemsg("!!! Couldn't download "+str(myfile)+". Aborting.\n")
+ writemsg("!!! Couldn't download "+str(myfile)+". Aborting.\n",
+ noiselevel=-1)
return 0
return 1