Check that there are published binaries (i.e. not stuck in bin-NEW).

This commit is contained in:
Stefano Rivera 2011-11-25 15:40:05 +02:00
parent 9ba1790863
commit 430fc81aab
2 changed files with 11 additions and 1 deletions

4
debian/changelog vendored
View File

@ -4,7 +4,9 @@ ubuntu-dev-tools (0.136ubuntu1) UNRELEASED; urgency=low
* Remove dgetlp. No longer needed.
* Use httplib2 everywhere that we do https. The python stdlib doesn't do
certificate verification.
* requestbackport: Check for existing backport bugs first.
* requestbackport:
- Check for existing backport bugs first.
- Check that there are published binaries (i.e. not stuck in bin-NEW).
* pull-lp-source, requestbackport: Take the latest version from any
non-backports pocket. Implemented by making lpapicache's getSourcePackage
smarter.

View File

@ -175,6 +175,14 @@ def request_backport(package_spph, source, destinations):
for bpph in package_spph.getBinaries():
published_binaries.add(bpph.getPackageName())
if not published_binaries:
Logger.error("%s (%s) has no published binaries in %s. ",
package_spph.getPackageName(), package_spph.getVersion(),
source)
Logger.normal("Is it stuck in bin-NEW? It can't be backported until "
"the binaries have been accepted.")
sys.exit(1)
testing = []
testing += ["You can test-build the backport in your PPA with "
"backportpackage:"]