public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13408 - main/trunk/pym/portage
@ 2009-04-29  5:03 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-04-29  5:03 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-04-29 05:03:45 +0000 (Wed, 29 Apr 2009)
New Revision: 13408

Modified:
   main/trunk/pym/portage/__init__.py
Log:
Fix the code from bug #267104 to account non-root users.


Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py	2009-04-29 00:35:52 UTC (rev 13407)
+++ main/trunk/pym/portage/__init__.py	2009-04-29 05:03:45 UTC (rev 13408)
@@ -3947,8 +3947,10 @@
 					mysize = 0
 				if (size - mysize + vfs_stat.f_bsize) >= \
 					(vfs_stat.f_bsize * vfs_stat.f_bavail):
-					if 'userfetch' in features:
+					if secpass < 2:
 						has_space = False
+					elif userfetch:
+						has_space = False
 					elif (size - mysize + vfs_stat.f_bfree) >= \
 						(vfs_stat.f_bfree * vfs_stat.f_bavail):
 						has_space = False




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-29  5:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29  5:03 [gentoo-commits] portage r13408 - main/trunk/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox