mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
fix(requestbackport): Remove useless loop from locate_package
Commit 0f3d2fed2a4ed67b90b5d49aab25ca2bda5d9d37 removed the difference between the two loop iterations in `locate_package`. So drop the useless second iteration. Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
This commit is contained in:
parent
909d945af4
commit
a160def2ab
@ -164,7 +164,6 @@ def find_rdepends(releases, published_binaries):
|
|||||||
|
|
||||||
def locate_package(package, distribution):
|
def locate_package(package, distribution):
|
||||||
archive = Distribution("ubuntu").getArchive()
|
archive = Distribution("ubuntu").getArchive()
|
||||||
for pass_ in ("source", "binary"):
|
|
||||||
try:
|
try:
|
||||||
package_spph = archive.getSourcePackage(package, distribution)
|
package_spph = archive.getSourcePackage(package, distribution)
|
||||||
return package_spph
|
return package_spph
|
||||||
|
Loading…
x
Reference in New Issue
Block a user