Only conclude that we don't need an orig tarball if we're sent to the

librarian (as opposed to the login page from a private PPA). (LP:
#1106429)
This commit is contained in:
Evan Broder 2013-07-12 13:38:32 -07:00
parent 6b84afdeeb
commit 2b5e91e32e
2 changed files with 9 additions and 2 deletions

View File

@ -291,7 +291,9 @@ def orig_needed(upload, workdir, pkg):
% (user, ppa, filename)) % (user, ppa, filename))
try: try:
headers, body = h.request(url, 'HEAD') headers, body = h.request(url, 'HEAD')
if headers.status != 200: if (headers.status != 200 or
not headers['content-location'].
startswith('https://launchpadlibrarian.net')):
return True return True
except HttpLib2Error, e: except HttpLib2Error, e:
Logger.info(e) Logger.info(e)

7
debian/changelog vendored
View File

@ -10,7 +10,12 @@ ubuntu-dev-tools (0.149) UNRELEASED; urgency=low
[ Adam Gandelman ] [ Adam Gandelman ]
* backportpackage: Fix destination for --dont-sign option. (LP: #1183985) * backportpackage: Fix destination for --dont-sign option. (LP: #1183985)
-- Adam Gandelman <adamg@ubuntu.com> Fri, 24 May 2013 12:56:08 -0700 [ Evan Broder ]
* Only conclude that we don't need an orig tarball if we're sent to the
librarian (as opposed to the login page from a private PPA). (LP:
#1106429)
-- Evan Broder <evan@stripe.com> Tue, 09 Jul 2013 17:49:21 -0700
ubuntu-dev-tools (0.148) unstable; urgency=low ubuntu-dev-tools (0.148) unstable; urgency=low