Completer: don't crash if there are candidates in t-p-u

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
debian
Adam D. Barratt 12 years ago
parent d1cf7116da
commit 8b09f949b6

@ -40,6 +40,8 @@ class Completer(object):
if pkg[0] == '-':
suite = 'testing'
pkg = pkg[1:]
if "_" in pkg:
(pkg, suite) = pkg.split("_")
if "/" in pkg:
pkg = pkg.split("/")[0]
name = "%s/%s" % (e.name, britney.sources[suite][pkg][0]) # 0 == VERSION

Loading…
Cancel
Save