mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-04 14:21:34 +00:00
Completer: don't crash if there are candidates in t-p-u
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
8c15568b8f
commit
8e72456651
@ -40,6 +40,8 @@ class Completer(object):
|
|||||||
if pkg[0] == '-':
|
if pkg[0] == '-':
|
||||||
suite = 'testing'
|
suite = 'testing'
|
||||||
pkg = pkg[1:]
|
pkg = pkg[1:]
|
||||||
|
if "_" in pkg:
|
||||||
|
(pkg, suite) = pkg.split("_")
|
||||||
if "/" in pkg:
|
if "/" in pkg:
|
||||||
pkg = pkg.split("/")[0]
|
pkg = pkg.split("/")[0]
|
||||||
name = "%s/%s" % (e.name, britney.sources[suite][pkg][0]) # 0 == VERSION
|
name = "%s/%s" % (e.name, britney.sources[suite][pkg][0]) # 0 == VERSION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user