Merge lp:~gz/bzr-builddeb/trivial_apt_pkg_compat_tweak into lp:bzr-builddeb
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | 636 |
Merged at revision: | 636 |
Proposed branch: | lp:~gz/bzr-builddeb/trivial_apt_pkg_compat_tweak |
Merge into: | lp:bzr-builddeb |
Diff against target: |
15 lines (+2/-2) 1 file modified
directory.py (+2/-2) |
To merge this branch: | bzr merge lp:~gz/bzr-builddeb/trivial_apt_pkg_compat_tweak |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij | Approve | ||
Review via email: mp+80032@code.launchpad.net |
Description of the change
Just tweak the way fallback is done for older apt_pkg versions so a deprecation warning is not triggered by accessing the old (capitalised) names unless the new (lowercase) ones do not exist.
Without this, using `bzr info apt:...` (which is really neat by the way) on squeeze gets me:
.../bzrlib/
of the 'apt_pkg.
lookup = getattr(sources, 'lookup', getattr(sources, 'Lookup', None))
.../bzrlib/
of the 'apt_pkg.
record = getattr(sources, 'record', getattr(sources, 'Record', None))
Retrieving Vcs locating from python-debian Debian version 0.1.18