Fix inverted logic in superuser logic for bug #267104. (trunk r13596)
authorZac Medico <zmedico@gentoo.org>
Sun, 3 May 2009 20:27:35 +0000 (20:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 3 May 2009 20:27:35 +0000 (20:27 -0000)
svn path=/main/branches/2.1.6/; revision=13602

pym/portage/__init__.py

index 4e770460a36e5b22be8efccdcd5b506e170c9c01..f80ff7f7ed89ee0e94cf569db0b3a7b693f671f7 100644 (file)
@@ -3987,7 +3987,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
 
                myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
                has_space = True
-               has_space_superuser = False
+               has_space_superuser = True
                file_lock = None
                if listonly:
                        writemsg_stdout("\n", noiselevel=-1)
@@ -4008,7 +4008,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
 
                                        if (size - mysize + vfs_stat.f_bsize) >= \
                                                (vfs_stat.f_bsize * vfs_stat.f_bfree):
-                                               has_space_superuser = True
+                                               has_space_superuser = False
 
                                        if not has_space_superuser:
                                                has_space = False