sponsor-patch: Build a source package for lintian to run on, when not

test-building syncs.
This commit is contained in:
Stefano Rivera 2011-11-27 17:20:58 +02:00
parent 83f9fba796
commit d0f707f33d
2 changed files with 11 additions and 4 deletions

2
debian/changelog vendored
View File

@ -10,6 +10,8 @@ ubuntu-dev-tools (0.137) UNRELEASED; urgency=low
* pull-lp-source, requestbackport: Take the latest version from any
non-backports pocket. Implemented by making lpapicache's getSourcePackage
smarter.
* sponsor-patch: Build a source package for lintian to run on, when not
test-building syncs.
-- Stefano Rivera <stefanor@debian.org> Mon, 21 Nov 2011 09:47:00 +0200

View File

@ -266,10 +266,15 @@ def sponsor_patch(bug_number, build, builder, edit, keyid, lpinstance, update,
previous_version = task.get_previous_version()
successful = source_package.check_version(previous_version)
if successful and build:
dist = UbuntuDistroInfo().devel()
successful = source_package.build(update, dist)
update = False
if successful:
if build:
dist = UbuntuDistroInfo().devel()
successful = source_package.build(update, dist)
update = False
else:
# We are going to run lintian, so we need a source package
successful = source_package.build_source(None, upload,
previous_version)
if successful:
#if source_package.sync(upload, bug_number, keyid):