summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-08-23 11:10:57 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-08-23 11:10:57 +0200
commit34fa87e70cd6967805ba6faebf146bc4dcd5c14c (patch)
treeabf8d4249a5eac0328a88e611951de2857ea4f89
parent08687ea30fffba24cf8204299285f3180f6ae3c3 (diff)
downloadpython-apt-34fa87e70cd6967805ba6faebf146bc4dcd5c14c.tar.gz
* aptsources/__init__.py, aptsources/distinfo.py:
- run apt_pkg.init() when aptsources gets imported and not the distinfo function
-rw-r--r--aptsources/__init__.py4
-rw-r--r--debian/changelog3
2 files changed, 7 insertions, 0 deletions
diff --git a/aptsources/__init__.py b/aptsources/__init__.py
index 8d1c8b69..d6b3605c 100644
--- a/aptsources/__init__.py
+++ b/aptsources/__init__.py
@@ -1 +1,5 @@
+
+import apt_pkg
+# init the package system
+apt_pkg.init()
diff --git a/debian/changelog b/debian/changelog
index 6a8b7f7e..a2ae598a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ python-apt (0.7.7.2) UNRELEASED; urgency=low
* python/progress.cc:
- when pulse() does not return a boolean assume "true"
(thanks to Martin Pitt for telling me about the problem)
+ * aptsources/__init__.py, aptsources/distinfo.py:
+ - run apt_pkg.init() when aptsources gets imported and not
+ the distinfo function
-- Michael Vogt <michael.vogt@ubuntu.com> Wed, 30 Jul 2008 10:24:30 +0200