From 9caf90a890c629806129e430625932298fe6a31c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 3 Nov 2015 01:26:37 +0100 Subject: Declare mandatory arches in conf.php and pass to get_refined_packages_list --- conf.php | 2 ++ index.php | 3 ++- lib.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/conf.php b/conf.php index 856b192..043e859 100644 --- a/conf.php +++ b/conf.php @@ -52,3 +52,5 @@ $etc_conf = '/etc/bs-webstatus.conf'; if (is_file($etc_conf)) { require $etc_conf; } + +$mandatory_arches = array('i586', 'x86_64'); diff --git a/index.php b/index.php index 9846951..4e42dd3 100644 --- a/index.php +++ b/index.php @@ -50,7 +50,8 @@ $matches = get_submitted_packages($upload_dir, $max_modified); list($pkgs, $hosts, $build_count, $build_dates, $buildtime_total) = get_refined_packages_list( $matches, isset($_GET['package']) ? $_GET['package'] : null, - isset($_GET['user']) ? $_GET['user'] : null + isset($_GET['user']) ? $_GET['user'] : null, + $mandatory_arches ); list($stats, $users, $total, $pkgs) = build_stats($pkgs); diff --git a/lib.php b/lib.php index 16749c5..403b6c9 100644 --- a/lib.php +++ b/lib.php @@ -53,7 +53,7 @@ function get_submitted_packages($upload_dir, $max_modified) * * @return array() */ -function get_refined_packages_list($list_of_files, $package = null, $user = null) +function get_refined_packages_list($list_of_files, $package = null, $user = null, $mandatory_arches = null) { $pkgs = array(); $hosts = array(); -- cgit v1.2.1