mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-23 16:31:32 +00:00
britney: Rewrite conditional assignment
The original method confused IntelliJ into thinking that binary_t was a boolean rather than an object. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
8352d62999
commit
d3b90e754b
@ -1142,7 +1142,7 @@ class Britney(object):
|
|||||||
pkg_name = pkg_id.package_name
|
pkg_name = pkg_id.package_name
|
||||||
|
|
||||||
# retrieve the testing (if present) and unstable corresponding binary packages
|
# retrieve the testing (if present) and unstable corresponding binary packages
|
||||||
binary_t = pkg_name in packages_t_a and packages_t_a[pkg_name] or None
|
binary_t = packages_t_a[pkg_name] if pkg_name in packages_t_a else None
|
||||||
binary_u = packages_s_a[pkg_name]
|
binary_u = packages_s_a[pkg_name]
|
||||||
|
|
||||||
# this is the source version for the new binary package
|
# this is the source version for the new binary package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user