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:
Martin Pitt 2013-07-23 12:49:00 +02:00
commit 22a7f51a9a
2 changed files with 9 additions and 2 deletions

View File

@ -291,7 +291,9 @@ def orig_needed(upload, workdir, pkg):
% (user, ppa, filename))
try:
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
except HttpLib2Error, e:
Logger.info(e)

7
debian/changelog vendored
View File

@ -10,7 +10,12 @@ ubuntu-dev-tools (0.149) UNRELEASED; urgency=low
[ Adam Gandelman ]
* 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