From 778dfd0c1a8fbc015d0b944e053fb2d7135d49c7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 8 Nov 2018 10:59:23 +0100 Subject: packages/pkginfo.php: show mysql fields instead of json fields for fields where both exist --- packages/pkginfo.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/pkginfo.php b/packages/pkginfo.php index c120578..f00dded 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -284,13 +284,13 @@ require_once BASE . "/lib/style.php"; while ($row = $mysql_result -> fetch_assoc()) $elsewhere[] = $row; - print_header($content["Name"] . " " . $content["Version"] . " (" . $content["Architecture"] . ")"); + print_header($content["pkgname"] . " " . $content["version"] . " (" . $content["arch"] . ")"); ?>
-

+

- "/> - "/> - "/> + "/> + "/> + "/> "/> "/> "/> @@ -409,7 +409,7 @@ if (count($elsewhere)>0) { Architecture: - " title="Browse packages for architecture"> + " title="Browse packages for architecture"> @@ -417,7 +417,7 @@ if (count($elsewhere)>0) { Repository: - " title="Browse the repository"> + " title="Browse the repository"> @@ -433,7 +433,7 @@ if (count($elsewhere)>0) { Upstream URL: - + @@ -486,7 +486,7 @@ if (count($elsewhere)>0) {
-

has the following dependencies"> +

has the following dependencies"> Dependencies ()

    @@ -535,7 +535,7 @@ if (count($elsewhere)>0) {
-

"> +

"> Required By ()

    @@ -543,7 +543,7 @@ if (count($elsewhere)>0) { foreach ($dependent as $dep) { print "
  • \n"; print " "; - if ($dep["install_target"] != $content["Name"]) + if ($dep["install_target"] != $content["pkgname"]) print $dep["install_target"] . " ("; if ($dep["is_on_master_mirror"]=="1") { print "0) { print " [" . $dep["repo"] . "]"; if ($dep["is_on_master_mirror"]=="1") print ""; - if ($dep["install_target"] != $content["Name"]) + if ($dep["install_target"] != $content["pkgname"]) print ")\n"; if ($dep["dependency_type"] != "run") print " (" . $dep["dependency_type"] . ")"; -- cgit v1.2.3-70-g09d2