Links to official packages now point back to AL site.

Previously if the package was not in community or unsupported, the link didn't point anywhere. Now it uses http://archlinux.org/packages/search/$pkgname. If there's a better way, someone needs to let me know. As far as I know, there's no sure way to link directly to a package without knowing the pkgid.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
This commit is contained in:
tardo 2007-09-25 21:30:33 -04:00 committed by Paul Mattal
parent b4946839ea
commit de365c6e0c

View file

@ -388,7 +388,7 @@ function package_details($id=0, $SID="") {
// $darr[3] is the DepCondition // $darr[3] is the DepCondition
if ($darr[2] == 0) echo $url."'>".$darr[1].$darr[3]."</a><br />\n"; if ($darr[2] == 0) echo $url."'>".$darr[1].$darr[3]."</a><br />\n";
else echo "<a href='#'>".$darr[1].$darr[3]."</a><br />\n"; else echo "<a href='http://archlinux.org/packages/search/".$darr[1]."'>".$darr[1].$darr[3]."</a><br />\n";
} }
echo "</td></tr>\n"; echo "</td></tr>\n";
echo "</table></td>"; echo "</table></td>";
@ -414,7 +414,7 @@ function package_details($id=0, $SID="") {
// $darr[3] is the DepCondition // $darr[3] is the DepCondition
if ($darr[2] == 0) print $url."'>".$darr[1].$darr[3]."</a><br />\n"; if ($darr[2] == 0) print $url."'>".$darr[1].$darr[3]."</a><br />\n";
else print "<a href='#'>".$darr[1].$darr[3]."</a><br />\n"; else print "<a href='http://archlinux.org/packages/search/".$darr[1]."'>".$darr[1].$darr[3]."</a><br />\n";
} }
echo "</td></tr>\n"; echo "</td></tr>\n";
echo " </table>\n"; echo " </table>\n";