aboutsummaryrefslogtreecommitdiff
path: root/utils/getdeveloperlib.py
diff options
context:
space:
mode:
authorGravatar Victor Huesca <victor.huesca@bootlin.com>2019-08-04 16:21:41 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-08-04 23:39:55 +0200
commitbb5576db9b9cf06b5f2d2f9a888730503c730462 (patch)
treebf69a7e27ab62321f4842868a32659e62aa040c2 /utils/getdeveloperlib.py
parentfac4ec44de9aa495e8ff5bd6a087abf455ded13d (diff)
downloadbuildroot-bb5576db9b9cf06b5f2d2f9a888730503c730462.tar.gz
buildroot-bb5576db9b9cf06b5f2d2f9a888730503c730462.tar.bz2
utils/getdeveloperlib: add some debug information
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils/getdeveloperlib.py')
-rw-r--r--utils/getdeveloperlib.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/getdeveloperlib.py b/utils/getdeveloperlib.py
index 35c618f791..81eae7ee9b 100644
--- a/utils/getdeveloperlib.py
+++ b/utils/getdeveloperlib.py
@@ -97,6 +97,22 @@ class Developer:
return True
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):
"""Given a list of file patterns, travel through the Buildroot source