index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-05-11 21:25:02 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-05-11 21:25:02 +0200 |
commit | b3ccf336e91e5896c67dfb3a27dc986e8fa795e0 (patch) | |
tree | 696e2e14770ccd66d0858c5b13b3ecfb4397337c /packages | |
parent | 7bfc912f524ce0ec521b2983d11abb813c1bd9bb (diff) |
-rw-r--r-- | packages/pkginfo.php | 31 |
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"]) { <?php print $content["last_moved"]."\n"; ?> </td> </tr> +<?php + if (count($blacklists)>0) { + print <<<EOF + <tr> + <th> + Blacklisted: + </th> + <td> +EOF; + foreach ($blacklists as $blacklist) { + print $blacklist["reason"]; + } + print <<<EOF + </td> + </tr> +EOF; + } +?> </table> </div> <div id="metadata"> |