mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-02 21:32:11 +00:00
britney.py: Avoid some throw-away creation of collections
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
abc124b792
commit
92deb4d1b9
@ -2722,7 +2722,7 @@ class Britney(object):
|
|||||||
_pkgvers = pkgvers
|
_pkgvers = pkgvers
|
||||||
|
|
||||||
self.__log("> Processing '%s' hint from %s" % (hinttype, who), type="I")
|
self.__log("> Processing '%s' hint from %s" % (hinttype, who), type="I")
|
||||||
self.output_write("Trying %s from %s: %s\n" % (hinttype, who, " ".join( ["%s/%s" % (x.uvname, x.version) for x in _pkgvers])))
|
self.output_write("Trying %s from %s: %s\n" % (hinttype, who, " ".join("%s/%s" % (x.uvname, x.version) for x in _pkgvers)))
|
||||||
|
|
||||||
ok = True
|
ok = True
|
||||||
# loop on the requested packages and versions
|
# loop on the requested packages and versions
|
||||||
@ -2856,8 +2856,7 @@ class Britney(object):
|
|||||||
pkg = self.binaries['testing'][arch][0][p]
|
pkg = self.binaries['testing'][arch][0][p]
|
||||||
all[(pkg[SOURCE], pkg[SOURCEVER])].add(p)
|
all[(pkg[SOURCE], pkg[SOURCEVER])].add(p)
|
||||||
|
|
||||||
|
print('* %s' % arch)
|
||||||
print('* %s' % (arch,))
|
|
||||||
|
|
||||||
for (src, ver), pkgs in sorted(all.items()):
|
for (src, ver), pkgs in sorted(all.items()):
|
||||||
print(' %s (%s): %s' % (src, ver, ' '.join(sorted(pkgs))))
|
print(' %s (%s): %s' % (src, ver, ' '.join(sorted(pkgs))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user