summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
authordsa <dsa>2006-10-13 05:55:58 +0200
committerdsa <dsa>2006-10-13 05:55:58 +0200
commite17a4ceb6ad00bcb51e49d39e5d1a9cd6129352b (patch)
treeb07210aa043844bdd42a0c563838234dce4ce13c /web/lib/pkgfuncs.inc
parent48a07d401025b55aa1e5b710c7b299bbfd853a0a (diff)
downloadaur-e17a4ceb6ad00bcb51e49d39e5d1a9cd6129352b.tar.gz
aur-e17a4ceb6ad00bcb51e49d39e5d1a9cd6129352b.tar.xz
Solved the #3939 bug and it will require a change in the PackageDepends table to add a DepCondition field with the type varchar(20).
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r--web/lib/pkgfuncs.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index daeb8f13..d7d13727 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -139,7 +139,7 @@ function package_dependencies($pkgid=0) {
$deps = array();
if ($pkgid) {
$dbh = db_connect();
- $q = "SELECT DepPkgID, Name, DummyPkg FROM PackageDepends, Packages ";
+ $q = "SELECT DepPkgID, Name, DummyPkg, DepCondition FROM PackageDepends, Packages ";
$q.= "WHERE PackageDepends.DepPkgID = Packages.ID ";
$q.= "AND PackageDepends.PackageID = ".mysql_escape_string($pkgid);
$q.= " ORDER BY Name";
@@ -402,8 +402,11 @@ function package_details($id=0, $SID="") {
}
}
reset($pkgsearch_vars);
- if ($darr[2] == 0) print $url."'>".$darr[1]."</a><br />\n";
- else print "<a href='#'>".$darr[1]."</a><br />\n";
+
+ // $darr[3] is the DepCondition
+
+ if ($darr[2] == 0) print $url."'>".$darr[1].$darr[3]."</a><br />\n";
+ else print "<a href='#'>".$darr[1].$darr[3]."</a><br />\n";
}
print "</td></tr>\n";
print "</table></td>";