Merge lp:~jelmer/bzr-builddeb/apt-deprecated into lp:bzr-builddeb
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Merged at revision: | 456 |
Proposed branch: | lp:~jelmer/bzr-builddeb/apt-deprecated |
Merge into: | lp:bzr-builddeb |
Diff against target: |
36 lines (+11/-5) 1 file modified
upstream.py (+11/-5) |
To merge this branch: | bzr merge lp:~jelmer/bzr-builddeb/apt-deprecated |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bzr-builddeb-hackers | Pending | ||
Review via email:
|
Description of the change
Another (and hopefully the last) branch to cope with some renames in the apt API. Previously we would could the right API functions but we would still obtain a reference to the functions by their older names, which triggers a deprecation warning on newer versions of python-apt.
This changes the code to only attempt to get a reference to the older name if the newer name is not available.
To post a comment you must log in.
Can I suggest a helper function?