* 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 ubuntu-dev-tools (0.137) UNRELEASED; urgency=low
[ Stefano Rivera ]
* mk-sbuild: Make --eatmydata command line flag actually work. * mk-sbuild: Make --eatmydata command line flag actually work.
* Remove dgetlp. No longer needed. * Remove dgetlp. No longer needed.
* Use httplib2 everywhere that we do https. The python stdlib doesn't do * 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 * pull-lp-source, requestbackport: Take the latest version from any
non-backports pocket. Implemented by making lpapicache's getSourcePackage non-backports pocket. Implemented by making lpapicache's getSourcePackage
smarter. 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 ] -- Stefano Rivera <stefanor@debian.org> Mon, 21 Nov 2011 09:47:00 +0200
* sponsor-patch: Check permission to unsubscribe sponsors-team (LP: #896884)
-- Andreas Moog <amoog@ubuntu.com> Sun, 27 Nov 2011 15:54:10 +0100
ubuntu-dev-tools (0.136) unstable; urgency=low 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: if self.is_derived_from_debian() and not latest_release:
project = "debian" project = "debian"
title = self.bug_task.title.lower().split() title = self.bug_task.bug.title.lower().split()
if "experimental" in title: if "experimental" in title:
series = "experimental" series = "experimental"
elif "testing" in title: elif "testing" in title:

View File

@ -115,7 +115,7 @@ class SourcePackage(object):
def ask_and_upload(self, upload): def ask_and_upload(self, upload):
"""Ask the user before uploading the source package. """Ask the user before uploading the source package.
Returns true if the source package is uploaded successfully. Returns Returns true if the source package is uploaded successfully. Returns
false if the user wants to change something. false if the user wants to change something.
""" """

View File

@ -266,10 +266,15 @@ def sponsor_patch(bug_number, build, builder, edit, keyid, lpinstance, update,
previous_version = task.get_previous_version() previous_version = task.get_previous_version()
successful = source_package.check_version(previous_version) successful = source_package.check_version(previous_version)
if successful and build: if successful:
dist = UbuntuDistroInfo().devel() if build:
successful = source_package.build(update, dist) dist = UbuntuDistroInfo().devel()
update = False 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 successful:
#if source_package.sync(upload, bug_number, keyid): #if source_package.sync(upload, bug_number, keyid):