utils/getdeveloperlib: add some debug information
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
fac4ec44de
commit
bb5576db9b
@ -97,6 +97,22 @@ class Developer:
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
name = '\'' + self.name.split(' <')[0][:20] + '\''
|
||||||
|
things = []
|
||||||
|
if len(self.files):
|
||||||
|
things.append('{} files'.format(len(self.files)))
|
||||||
|
if len(self.packages):
|
||||||
|
things.append('{} pkgs'.format(len(self.packages)))
|
||||||
|
if len(self.architectures):
|
||||||
|
things.append('{} archs'.format(len(self.architectures)))
|
||||||
|
if len(self.infras):
|
||||||
|
things.append('{} infras'.format(len(self.infras)))
|
||||||
|
if things:
|
||||||
|
return 'Developer <{} ({})>'.format(name, ', '.join(things))
|
||||||
|
else:
|
||||||
|
return 'Developer <' + name + '>'
|
||||||
|
|
||||||
|
|
||||||
def parse_developer_packages(fnames):
|
def parse_developer_packages(fnames):
|
||||||
"""Given a list of file patterns, travel through the Buildroot source
|
"""Given a list of file patterns, travel through the Buildroot source
|
||||||
|
Loading…
Reference in New Issue
Block a user