From f664def8463a84284a1a8f93ddc5cd6dae3f9d1b Mon Sep 17 00:00:00 2001 From: Necoro <> Date: Sun, 20 Jan 2008 02:25:04 +0000 Subject: r682@Devoty: necoro | 2008-01-20 03:23:02 +0100 remove package at the _end_ of the merge --- portato/gui/updater.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'portato/gui/updater.py') 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) -- cgit v1.2.3