From 7b17b69d8d525fd9da047e82a4dab57a6eef138a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 10 Nov 2016 15:58:14 +0000 Subject: reproducible Debian: rework META_PKGSET; no functional change. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Holger Levsen (+adopted to use _ as dummy varibleā€¦) --- bin/reproducible_html_pkg_sets.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_html_pkg_sets.py') 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) -- cgit v1.2.3-54-g00ecf