diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index a87bb23a8e..bbd1e3e6f0 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -205,7 +205,7 @@ class Package: infra = match.group(1) if infra.startswith("host-") and keep_host: self.infras.append(("host", infra[5:])) - elif keep_target: + elif not infra.startswith("host-") and keep_target: self.infras.append(("target", infra)) def set_license(self): @@ -342,9 +342,10 @@ class Package: return self.path < other.path def __str__(self): - return "%s (path='%s', license='%s', license_files='%s', hash='%s', patches=%d)" % \ + return "%s (path='%s', license='%s', license_files='%s', hash='%s', patches=%d, infras=%r)" % \ (self.name, self.path, self.is_status_ok('license'), - self.is_status_ok('license-files'), self.status['hash'], self.patch_count) + self.is_status_ok('license-files'), self.status['hash'], self.patch_count, + self.infras) def get_pkglist(trees, npackages, package_list):