summaryrefslogtreecommitdiff
path: root/UpdateManager/UpdateManager.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-19 11:35:13 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-19 11:35:13 +0200
commit1dd21dbda1eeee6daf6eaf4a2f7c4bf1ce25ce08 (patch)
treea8639e285fbce8b2f61d9bdd388eb0bcdcc77474 /UpdateManager/UpdateManager.py
parent33d4c53df7e8daeacb6034815ff39fb5ebc4d32a (diff)
downloadpython-apt-1dd21dbda1eeee6daf6eaf4a2f7c4bf1ce25ce08.tar.gz
* DistUpgrade/DistUpgradeCache.py, UpdateManager/UpdateManager.py:
- filter out python-apt warnings * UpdateManager/UpdateManager.py: - make sure that src_ver is always initialized
Diffstat (limited to 'UpdateManager/UpdateManager.py')
-rw-r--r--UpdateManager/UpdateManager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 3fe9ad1e..0d70b56c 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -33,8 +33,11 @@ try:
except:
import fakegconf as gconf
import gobject
+from warnings import warn
+warnings.filterwarnings("ignore", "apt API not stable yet", FutureWarning)
import apt
import apt_pkg
+
import gettext
import copy
import string
@@ -130,6 +133,7 @@ class MyCache(apt.Cache):
# get the source version, start with the binaries version
binver = pkg.candidateVersion
+ srcver = pkg.candidateVersion
#print "bin: %s" % binver
try:
# try to get the source version of the pkg, this differs