summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-18 01:39:37 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-26 17:13:54 +0100
commit9639fdd4594cfd8e0d65058ecd8e41775f0114c7 (patch)
tree113b84e4fb5acb63360fc0a44be8dcfe047341cc /bin
parent574c0147442cc2e880656056aeeacbc89bdef36e (diff)
downloadjenkins.debian.net-9639fdd4594cfd8e0d65058ecd8e41775f0114c7.tar.xz
reproducible: html_all_packages: quick rewrite of this tiny script in python + add support for multi release
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_all_packages.py19
-rwxr-xr-xbin/reproducible_html_all_packages.sh25
2 files changed, 19 insertions, 25 deletions
diff --git a/bin/reproducible_html_all_packages.py b/bin/reproducible_html_all_packages.py
new file mode 100755
index 00000000..eafe5d4a
--- /dev/null
+++ b/bin/reproducible_html_all_packages.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+#
+# Copyright © 2015 Mattia Rizzolo <mattia@mapreri.org>
+#Based on reproducible_html_all_packages.sh © 2014 Holger Levsen <holger@layer-acht.org>
+# Licensed under GPL-2
+#
+# Depends: python3
+#
+# Build all rb-pkg pages (the pages that describe the package status) using
+# code already written in reproducible_html_packages
+
+
+from reproducible_common import *
+from reproducible_html_packages import gen_all_rb_pkg_pages
+
+
+for suite in SUITES:
+ gen_all_rb_pkg_pages(suite=suite)
diff --git a/bin/reproducible_html_all_packages.sh b/bin/reproducible_html_all_packages.sh
deleted file mode 100755
index 7563d423..00000000
--- a/bin/reproducible_html_all_packages.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-# Copyright 2014 Holger Levsen <holger@layer-acht.org>
-# released under the GPLv=2
-
-DEBUG=false
-. /srv/jenkins/bin/common-functions.sh
-common_init "$@"
-
-# common code defining db access
-. /srv/jenkins/bin/reproducible_common.sh
-
-set +x
-init_html
-
-#
-# attempt to rebuild all package pages
-# (will only happen if they don't exist or are older than build date.)
-# (should never be needed)
-#
-PACKAGES=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status != \"\"")
-COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status != \"\"")
-echo "$(date) - processing $COUNT_TOTAL packages... this will take a while."
-gen_packages_html ${PACKAGES}
-