summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_notes.py
diff options
context:
space:
mode:
authorXimin Luo <infinity0@debian.org>2016-10-11 14:56:34 +0200
committerHolger Levsen <holger@layer-acht.org>2016-10-11 18:50:57 +0200
commit110b3e905312d6f94160c30d33b166ba4831d7ac (patch)
tree5ad40cdd3c8eec344ff895393a19f3c6786b6d1b /bin/reproducible_html_notes.py
parent3ae945a19af65acbc6e3c1fcf89192b12856a08a (diff)
downloadjenkins.debian.net-110b3e905312d6f94160c30d33b166ba4831d7ac.tar.xz
Use popcon.source_package now that it's available in jessie-backports
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_html_notes.py')
-rwxr-xr-xbin/reproducible_html_notes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 63e94adf..5f5bd201 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -399,7 +399,7 @@ def issues_popcon_annotate(issues_list):
try:
n = len(issues_list)
popcon_dict = dict((p, 0) for p in issues_list)
- popcon_dict.update(popcon.package(*issues_list))
+ popcon_dict.update(popcon.source_package(*issues_list))
issues = sorted(popcon_dict.items(), key=lambda p: p[0])
issues_by_popcon = sorted(issues, key=lambda p: p[1], reverse=True)
issues_with_popcon = [(p[0], p[1], i<n/4) for i, p in enumerate(issues_by_popcon)]
@@ -470,9 +470,9 @@ if __name__ == '__main__':
try:
index_issues(issues, OrderedDict([
("Sum of packages' popcon scores",
- lambda l: sum(popcon.package(*l).values())),
+ lambda l: sum(popcon.source_package(*l).values())),
("Sum of square-roots of packages' popcon scores",
- lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
+ lambda l: int(sum(map(sqrt, popcon.source_package(*l).values())))),
("Number of packages",
len),
]))