From 8b09f949b649a0a9bb21806119e30d0ef369c74b Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 14 Mar 2013 19:58:14 +0000 Subject: [PATCH] Completer: don't crash if there are candidates in t-p-u Signed-off-by: Adam D. Barratt --- completer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/completer.py b/completer.py index cda4eb5..36345d5 100644 --- a/completer.py +++ b/completer.py @@ -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