diff options
author | Daniel Shahaf <danielsh@apache.org> | 2016-11-10 15:58:14 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-11-10 17:14:22 +0100 |
commit | 7b17b69d8d525fd9da047e82a4dab57a6eef138a (patch) | |
tree | 53a102f13e8240596a4c555ac4fdfedfddf63649 /bin/reproducible_html_pkg_sets.py | |
parent | 7ff6da81801d36553e5a54b147657c9e6bd27c41 (diff) | |
download | jenkins.debian.net-7b17b69d8d525fd9da047e82a4dab57a6eef138a.tar.xz |
reproducible Debian: rework META_PKGSET; no functional change.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
(+adopted to use _ as dummy varible…)
Diffstat (limited to 'bin/reproducible_html_pkg_sets.py')
-rwxr-xr-x | bin/reproducible_html_pkg_sets.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/reproducible_html_pkg_sets.py b/bin/reproducible_html_pkg_sets.py index 0cf155c4..0f4dc945 100755 --- a/bin/reproducible_html_pkg_sets.py +++ b/bin/reproducible_html_pkg_sets.py @@ -117,9 +117,7 @@ def update_stats(suite, arch, stats, pkgset_name): def create_pkgset_navigation(suite, arch, view=None): # Group the package sets by section sections = OrderedDict() - for index in range(1, len(META_PKGSET)+1): - pkgset_name = META_PKGSET[index][0] - pkgset_section = META_PKGSET[index][1] + for pkgset_name, pkgset_section in META_PKGSET: pkgset = { 'class': "active" if pkgset_name == view else "", 'pkgset_name': pkgset_name, @@ -302,8 +300,7 @@ for arch in ARCHS: if suite == 'experimental': continue create_index_page(suite, arch) - for index in META_PKGSET: - pkgset_name = META_PKGSET[index][0] + for pkgset_name, _ in META_PKGSET: stats = gather_meta_stats(suite, arch, pkgset_name) if (stats): update_stats(suite, arch, stats, pkgset_name) |