Fix inverted logic in superuser logic for bug #267104.
authorZac Medico <zmedico@gentoo.org>
Sat, 2 May 2009 20:49:27 +0000 (20:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 May 2009 20:49:27 +0000 (20:49 -0000)
svn path=/main/trunk/; revision=13596

pym/portage/__init__.py

index 7eff357d2c29e93de494709b40537bb6afa668d8..07adcd224290008b5862d4210bf31a780d51ec0f 100644 (file)
@@ -3996,7 +3996,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)
@@ -4017,7 +4017,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