sponsor-patch: Compare new sync version to the current Ubuntu version,

rather than itself (LP: #878499)
This commit is contained in:
Stefano Rivera 2011-10-28 10:03:06 +02:00
parent 5bf59a2cd7
commit e899e83543
2 changed files with 4 additions and 1 deletions

2
debian/changelog vendored
View File

@ -10,6 +10,8 @@ ubuntu-dev-tools (0.134) UNRELEASED; urgency=low
- Always display blacklist comments, if they exist.
- Display timestamps for DSD blacklist comments.
- Add --fakesync option, relegating --no-lp to really crazy corner cases.
* sponsor-patch: Compare new sync version to the current Ubuntu version,
rather than itself (LP: #878499)
[ Benjamin Drung ]
* syncpackage: Catch user abort.

View File

@ -263,7 +263,8 @@ def sponsor_patch(bug_number, build, builder, edit, keyid, lpinstance, update,
if successful:
source_package.check_sync_request_version(bug_number, task)
successful = source_package.check_version(task.get_version())
successful = source_package.check_version(
task.get_previous_version())
if successful and build:
dist = UbuntuDistroInfo().devel()