summaryrefslogtreecommitdiff
path: root/UpdateManager
diff options
context:
space:
mode:
Diffstat (limited to 'UpdateManager')
-rw-r--r--UpdateManager/UpdateManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 134c6d32..5b8be99a 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -160,9 +160,9 @@ class MyCache(apt.Cache):
# approach here and just strip it away, but I'm
# sure that this can lead to problems
installed = pkg.installedVersion
- if ":" in installed:
+ if installed and ":" in installed:
installed = installed.split(":",1)[1]
- if apt_pkg.VersionCompare(match.group(1),installed) <= 0:
+ if installed and apt_pkg.VersionCompare(match.group(1),installed) <= 0:
break
# EOF (shouldn't really happen)
alllines = alllines + line