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

debian
Niels Thykier 13 years ago committed by Adam D. Barratt
parent 0e50a0ef44
commit 504a7c2d61

@ -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