* requestsync: use getSourcePackage() instead of loading the package-object

directly
This commit is contained in:
Markus Korn 2009-01-07 10:11:06 +01:00
parent 4845fcea2d
commit 59e7037ed8

View File

@ -105,7 +105,7 @@ def checkExistingReports(package):
return False
# Fetch the package's bug list from Launchpad.
pkg = launchpad.load("%subuntu/+source/%s" %(launchpad._root_uri, package))
pkg = launchpad.distributions["ubuntu"].getSourcePackage(name=package)
pkgBugList = pkg.searchTasks()
# Search bug list for other sync requests.