summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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}
-