diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-09-18 14:43:26 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-09-18 14:43:26 +0200 |
| commit | 17e8b974718928e8e5a1b80ac2c45e6f7ff98441 (patch) | |
| tree | 3c9a3d0c3495b024f9f8fe788c6598b939413ca3 /aptsources | |
| parent | 6f6671a3375128c075a20927b58ad9d7b4bbb543 (diff) | |
| parent | d44831bb1d10ac1bc29690fd226209fb71b91b42 (diff) | |
| download | python-apt-17e8b974718928e8e5a1b80ac2c45e6f7ff98441.tar.gz | |
* 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
- fix detection of cdrom sources and add test for it
Diffstat (limited to 'aptsources')
| -rw-r--r-- | aptsources/__init__.py | 4 | ||||
| -rw-r--r-- | aptsources/distinfo.py | 1 |
2 files changed, 4 insertions, 1 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/aptsources/distinfo.py b/aptsources/distinfo.py index b962def6..a6c0faf8 100644 --- a/aptsources/distinfo.py +++ b/aptsources/distinfo.py @@ -128,7 +128,6 @@ class DistInfo: base_dir = "/usr/share/python-apt/templates"): self.metarelease_uri = '' self.templates = [] - apt_pkg.init() self.arch = apt_pkg.Config.Find("APT::Architecture") location = None |
