From b3ccf336e91e5896c67dfb3a27dc986e8fa795e0 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 11 May 2021 21:25:02 +0200 Subject: pkginfo.php: started to integrate blacklist info --- packages/pkginfo.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/packages/pkginfo.php b/packages/pkginfo.php index bf6812c..a66fb68 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -376,10 +376,23 @@ require_once BASE . "/lib/style.php"; " WHERE `original`.`id`=" . $mysql_content["id"] ); + $elsewhere = array(); while ($row = $mysql_result -> fetch_assoc()) $elsewhere[] = $row; + // blacklist entry + $mysql_result = mysql_run_query( "select distinct architectures.name as architecture, " . + "package_sources.pkgbase as pkgname, " . + "is_black_listed as reason " . + "from architectures,package_sources,build_assignments " . + "where package_sources.id=package_source and architecture=architectures.id and " . + "package_sources.pkgbase='" . $_GET["pkgname"] . "' and is_black_listed is not null and " . + "architectures.name='" . $_GET["repo_arch"] . "'" ); + $blacklists = array(); + while ($row = $mysql_result -> fetch_assoc()) + $blacklists[] = $row; + print_header($content["pkgname"] . " " . $content["version"] . " (" . $content["arch"] . ")"); ?> @@ -630,6 +643,24 @@ if ($count > 1 || $content["pkgname"] != $content["pkgbase"]) { +0) { + print << + + Blacklisted: + + +EOF; + foreach ($blacklists as $blacklist) { + print $blacklist["reason"]; + } + print << + +EOF; + } +?>
-- cgit v1.2.3