From aef6dbe3082ee3b03ea834fc4a27dcf07d3b29ea Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Mon, 25 Feb 2008 14:16:13 +0000 Subject: [PATCH] don't ask me why previous condition didn't work git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1295 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/reagentTools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/reagentTools.py b/libraries/reagentTools.py index 3a1b3c216..dbf78b3a4 100644 --- a/libraries/reagentTools.py +++ b/libraries/reagentTools.py @@ -163,7 +163,6 @@ def update(options): atomslot = dbconn.retrieveSlot(x[1]) add = True - tagfound = False for pkgdata in toBeAdded: addslot = getPackageSlot(pkgdata[0]) addkey = Entropy.entropyTools.dep_getkey(pkgdata[0]) @@ -176,7 +175,7 @@ def update(options): break if add: dbtag = dbconn.retrieveVersionTag(x[1]) - if dbtag: + if dbtag != '': is_injected = dbconn.isInjected(x[1]) if not is_injected: toBeInjected.add(x[1]) @@ -184,7 +183,7 @@ def update(options): toBeRemoved.add(x[1]) else: dbtag = dbconn.retrieveVersionTag(x[1]) - if dbtag: + if dbtag != '': is_injected = dbconn.isInjected(x[1]) if not is_injected: toBeInjected.add(x[1])