summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@torproject.org>2011-11-01 13:15:48 -0300
committerTomás Touceda <chiiph@torproject.org>2011-11-01 13:15:48 -0300
commit31d99e2446f2d9ddc3832ba3652c317724dcd6c2 (patch)
treeefeeed78975214086b605c3c09b2ebe72af2211d
parent78e260013786d048589172a74dbe6288ef4edba6 (diff)
Fix minor bug in the ThpCheck: broken status wont mark it as not installed
-rw-r--r--lib/thandy/packagesys/ThpPackages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thandy/packagesys/ThpPackages.py b/lib/thandy/packagesys/ThpPackages.py
index 84e55c5..b558d59 100644
--- a/lib/thandy/packagesys/ThpPackages.py
+++ b/lib/thandy/packagesys/ThpPackages.py
@@ -140,7 +140,7 @@ class ThpChecker(PS.Checker):
versions, status = self.getInstalledVersions()
# if status = IN_PROGRESS a previous installation failed
# we need to reinstall
- return (status != "IN_PROGRESS" and self._version in versions)
+ return (status == "INSTALLED" and self._version in versions)
class ThpTransaction(object):
""" Represents the installation of a bundle that contains thp packages. """