seeded-in-ubuntu: Log into launchpad anonymously (LP: #979849)

This commit is contained in:
Stefano Rivera 2012-04-12 18:23:00 +02:00
parent 36088bad6c
commit b05cbfd8f9
2 changed files with 11 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.141) UNRELEASED; urgency=low
* seeded-in-ubuntu: Log into launchpad anonymously (LP: #979849)
-- Stefano Rivera <stefanor@debian.org> Thu, 12 Apr 2012 18:21:41 +0200
ubuntu-dev-tools (0.140) unstable; urgency=low
[ Stefano Rivera ]

View File

@ -24,7 +24,8 @@ import urllib
from devscripts.logger import Logger
from ubuntutools.lp.lpapicache import Distribution, PackageNotFoundException
from ubuntutools.lp.lpapicache import (Distribution, Launchpad,
PackageNotFoundException)
DATA_URL = 'http://qa.ubuntuwire.org/ubuntu-seeded-packages/seeded.json.gz'
@ -117,6 +118,9 @@ def main():
if len(args) < 1:
parser.error("At least one package must be specified")
# Login anonymously to LP
Launchpad.login_anonymously()
index = load_index(options.data_url)
if options.binary:
output_binaries(index, args)