summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-05 23:35:33 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-05 23:35:33 -0700
commit88f0bd14c7bf43af8732b1f31f479aa9837c04be (patch)
tree5a9b9bf3b0b8bef3792a78d91f0363e63343e5dd
parent7c38e75dd8460f7a1ddafce7bd9d3f9a87d0c4e9 (diff)
downloadportage-88f0bd14c7bf43af8732b1f31f479aa9837c04be.tar.gz
portage-88f0bd14c7bf43af8732b1f31f479aa9837c04be.tar.bz2
portage-88f0bd14c7bf43af8732b1f31f479aa9837c04be.zip
Fix scope issue that could cause 'retval' variable to be undefined.
-rw-r--r--pym/_emerge/PackageUninstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/PackageUninstall.py b/pym/_emerge/PackageUninstall.py
index 58a1717a2..6f528663a 100644
--- a/pym/_emerge/PackageUninstall.py
+++ b/pym/_emerge/PackageUninstall.py
@@ -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()