Allow a list as well as a tuple in Britney.do_hint

bzr-import-20160707
Niels Thykier 13 years ago committed by Adam D. Barratt
parent c47e08b8cf
commit 22d8167786

@ -2733,7 +2733,7 @@ class Britney:
"hint": 0,
"force-hint": -1,}
if isinstance(pkgvers[0], tuple):
if isinstance(pkgvers[0], tuple) or isinstance(pkgvers[0], list):
_pkgvers = [ HintItem('%s/%s' % (p, v)) for (p,v) in pkgvers ]
else:
_pkgvers = pkgvers

Loading…
Cancel
Save