Fix scope issue that could cause 'retval' variable to be undefined.
authorZac Medico <zmedico@gentoo.org>
Fri, 6 Aug 2010 06:35:33 +0000 (23:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 6 Aug 2010 06:35:33 +0000 (23:35 -0700)
pym/_emerge/PackageUninstall.py

index 58a1717a230fa05d42e07a452cbec8290a468b65..6f528663a2b0dc6bdf9b0f92233917258cabd8bf 100644 (file)
@@ -27,8 +27,8 @@ class PackageUninstall(AsynchronousTask):
                else:
                        self.returncode = os.EX_OK
 
-               if retval == 1:
-                       self.world_atom(self.pkg)
+                       if retval == 1:
+                               self.world_atom(self.pkg)
 
                self.wait()