summaryrefslogtreecommitdiff
path: root/portato/gui/updater.py
diff options
context:
space:
mode:
authorNecoro <>2008-01-20 02:25:04 +0000
committerNecoro <>2008-01-20 02:25:04 +0000
commitf664def8463a84284a1a8f93ddc5cd6dae3f9d1b (patch)
tree15029a7ce3347030d06d57f6e9a500fd5d8e0e17 /portato/gui/updater.py
parent6647e99ec83e2a934346bb4ca58e93a2e216a831 (diff)
downloadportato-f664def8463a84284a1a8f93ddc5cd6dae3f9d1b.tar.gz
portato-f664def8463a84284a1a8f93ddc5cd6dae3f9d1b.tar.bz2
portato-f664def8463a84284a1a8f93ddc5cd6dae3f9d1b.zip
r682@Devoty: necoro | 2008-01-20 03:23:02 +0100
remove package at the _end_ of the merge
Diffstat (limited to 'portato/gui/updater.py')
-rw-r--r--portato/gui/updater.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/portato/gui/updater.py b/portato/gui/updater.py
index e468691..f0d4c90 100644
--- a/portato/gui/updater.py
+++ b/portato/gui/updater.py
@@ -66,11 +66,10 @@ q
p1 = subprocess.Popen(["qlop", "--current", "--nocolor", "--quiet"], stdout = subprocess.PIPE)
this = subprocess.Popen(["sed", self.SED_EXP], stdout = subprocess.PIPE, stdin = p1.stdout).communicate()[0]
- if this:
- this = this.strip()
- if this != curr: # changed package
- curr = this
- self.remove(self.find(curr)) # remove it
+ if this: this = this.strip()
+ if this != curr: # changed package
+ curr and self.remove(self.find(curr)) # remove the previous
+ curr = this
time.sleep(2.0)