Merge lp:~james-w/pkgme-devportal/strip-epochs into lp:pkgme-devportal
Proposed by
James Westby
Status: | Merged |
---|---|
Approved by: | Jonathan Lange |
Approved revision: | 92 |
Merged at revision: | 92 |
Proposed branch: | lp:~james-w/pkgme-devportal/strip-epochs |
Merge into: | lp:pkgme-devportal |
Diff against target: |
75 lines (+42/-1) 2 files modified
devportalbinary/database.py (+4/-1) devportalbinary/tests/test_database.py (+38/-0) |
To merge this branch: | bzr merge lp:~james-w/pkgme-devportal/strip-epochs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Approve | ||
Review via email: mp+121894@code.launchpad.net |
Commit message
Strip epochs from version numbers when calculating the .deb url on LP.
Description of the change
Hi,
We have a large number of libraries not in the dependency db because
we can't currently fetch the .deb from LP. That's becuase they have epochs
in the version numbers, but they aren't in the filename. This changes
the url calculation to strip epochs.
This is rather hacky in a number of ways:
* The epoch stripping. This could be done with code from python-debian
if we want the extra dependency.
* The tests. This could be done with mock, or could be done with better
fakes for the launchpadlib stuff.
As ever, happy to make any changes that you feel are warranted.
Thanks,
James
To post a comment you must log in.
Looks good. Thanks.
I guess it would be nice if Python had a thing that took nested dicts and turned them into nested objects.