From d0f707f33d05ba8e99a9afafd6651f43613431de Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 27 Nov 2011 17:20:58 +0200 Subject: [PATCH] sponsor-patch: Build a source package for lintian to run on, when not test-building syncs. --- debian/changelog | 2 ++ ubuntutools/sponsor_patch/sponsor_patch.py | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index afbf2cf..073cfe2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 21 Nov 2011 09:47:00 +0200 diff --git a/ubuntutools/sponsor_patch/sponsor_patch.py b/ubuntutools/sponsor_patch/sponsor_patch.py index 821fc57..f905e15 100644 --- a/ubuntutools/sponsor_patch/sponsor_patch.py +++ b/ubuntutools/sponsor_patch/sponsor_patch.py @@ -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):