ack-sync: Fix typo and skip upload check for new packages.

This commit is contained in:
Benjamin Drung 2010-11-22 01:30:36 +01:00
parent bd8d28701f
commit 851e96ea23

View File

@ -212,9 +212,12 @@ def main(bug_numbers, all_package, all_version, all_section, update,
distroseries=series, person=launchpad.me, pocket='Release',
sourcepackagename=package)
can_upload = True
except lazr.restfulclient.errors.HTTPErro, e:
except lazr.restfulclient.errors.HTTPError, e:
if e.response.status == 403:
can_upload = False
elif e.response.status == 400:
print "W: Package is probably not in Ubuntu. Can't check upload rights."
can_upload = True
else:
raise e
if not can_upload: