Merge ~cjwatson/launchpad:artifactory-multiple-orig into launchpad:master
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 739632f684995ae1784d7d1ec4530e1c76cb833e |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:artifactory-multiple-orig |
Merge into: | launchpad:master |
Diff against target: |
325 lines (+139/-23) 4 files modified
lib/lp/archivepublisher/artifactory.py (+4/-5) lib/lp/archivepublisher/publishing.py (+48/-5) lib/lp/archivepublisher/tests/test_artifactory.py (+13/-13) lib/lp/archivepublisher/tests/test_publisher.py (+74/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+435618@code.launchpad.net |
Commit message
Fix handling of shared files when updating Artifactory properties
Description of the change
Some files (notably `.orig.tar.*` files in Debian-format source packages) may be shared between multiple different package versions: for example, `hello 1.0-1` and `hello 1.0-2` will normally share a file called something like `hello_
For Artifactory publication, the publisher handled this case poorly. If two versions were published that shared the same file, but then one of those versions was removed, the shared file was correctly left in place until there are no remaining publications using it; but `Publisher.
Fixing this requires working out the `IPackageReleas
The shared files end up still having `launchpad.