Merge lp:~julian-edwards/launchpad/upload-file-conflict-bug-663562 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Julian Edwards | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 12009 | ||||
Proposed branch: | lp:~julian-edwards/launchpad/upload-file-conflict-bug-663562 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
61 lines (+29/-2) 2 files modified
lib/lp/archiveuploader/dscfile.py (+3/-2) lib/lp/archiveuploader/tests/test_ppauploadprocessor.py (+26/-0) |
||||
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/upload-file-conflict-bug-663562 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+42264@code.launchpad.net |
Commit message
When the upload processor looking up files, make sure it doen't just look up ones that are not marked as removed so that people cannot later re-upload the same file with different contents.
Description of the change
= Summary =
When the upload processor looking up files, make sure we don't just look up
ones that are not marked as removed.
== Proposed fix ==
Currently the upload processor is only looking up file ancestry where the file
has not been removed from disk, by virtue of using the SQL view
SourcePackageFi
once a file is uploaded with certain contents, those contents should never
change.
== Implementation details ==
The call to IDistribution.
IArchive.
None, so that's taken care of too.
== Tests ==
bin/test -cvv test_ppauploadp