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

test-building syncs.
* sponsor-patch: Check the bug's title, not the task, when determining
  source series for syncs.
This commit is contained in:
Andreas Moog 2011-11-27 16:40:16 +01:00
commit 20e757b2a5
4 changed files with 16 additions and 11 deletions

10
debian/changelog vendored
View File

@ -1,6 +1,5 @@
ubuntu-dev-tools (0.137) UNRELEASED; urgency=low
[ Stefano Rivera ]
* mk-sbuild: Make --eatmydata command line flag actually work.
* Remove dgetlp. No longer needed.
* Use httplib2 everywhere that we do https. The python stdlib doesn't do
@ -11,11 +10,12 @@ 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.
* sponsor-patch: Check the bug's title, not the task, when determining
source series for syncs.
[ Andreas Moog ]
* sponsor-patch: Check permission to unsubscribe sponsors-team (LP: #896884)
-- Andreas Moog <amoog@ubuntu.com> Sun, 27 Nov 2011 15:54:10 +0100
-- Stefano Rivera <stefanor@debian.org> Mon, 21 Nov 2011 09:47:00 +0200
ubuntu-dev-tools (0.136) unstable; urgency=low

View File

@ -119,7 +119,7 @@ class BugTask(object):
if self.is_derived_from_debian() and not latest_release:
project = "debian"
title = self.bug_task.title.lower().split()
title = self.bug_task.bug.title.lower().split()
if "experimental" in title:
series = "experimental"
elif "testing" in title:

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:
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):