@ -2132,13 +2132,16 @@ class Britney:
"""
"""
packages = [ pkg ]
packages = [ pkg ]
binaries = self . binaries [ suite ] [ arch ] [ 0 ]
binaries = self . binaries [ suite ] [ arch ] [ 0 ]
l = n = 0
if pkg in binaries :
while len ( packages ) > l :
l = n = 0
l = len ( packages )
while len ( packages ) > l :
for p in packages [ n : ] :
l = len ( packages )
packages . extend ( [ x for x in binaries [ p ] [ RDEPENDS ] if x not in packages and x in binaries ] )
for p in packages [ n : ] :
n = l
packages . extend ( [ x for x in binaries [ p ] [ RDEPENDS ] if x not in packages and x in binaries ] )
return packages
n = l
return packages
else :
return [ ]
def iter_packages ( self , packages , selected , hint = False , nuninst = None ) :
def iter_packages ( self , packages , selected , hint = False , nuninst = None ) :
""" Iter on the list of actions and apply them one-by-one
""" Iter on the list of actions and apply them one-by-one