summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_html_all_packages.py19
-rwxr-xr-xbin/reproducible_html_all_packages.sh25
-rw-r--r--job-cfg/reproducible.yaml2
3 files changed, 20 insertions, 26 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}
-
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index bfe1f7c7..bcdf71f8 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -233,7 +233,7 @@
- '{name}_html_all_packages':
my_description: 'Generate HTML results (for all packages) for reproducible builds. This job is normally not needed and only run once a year.'
my_timed: '12 12 30 12 *'
- my_shell: '/srv/jenkins/bin/reproducible_html_all_packages.sh'
+ my_shell: '/srv/jenkins/bin/reproducible_html_all_packages.py'
my_recipients: 'holger@layer-acht.org'
- '{name}_html_repo_stats':
my_description: 'Generate HTML results (repo_stats) for reproducible builds.'