diff options
author | tardo <tardo@nagi-fanboi.net> | 2007-09-25 21:30:33 -0400 |
---|---|---|
committer | Paul Mattal <paul@mattal.com> | 2007-09-27 09:10:33 -0400 |
commit | de365c6e0c853c60f1a713b39a6b190a3bd40900 (patch) | |
tree | a70dd211753c1e1c4e23d8e19e754e62d2521acf /web/lib | |
parent | b4946839ea26c4ccabd914da4213561be9b1cf22 (diff) | |
download | aurweb-de365c6e0c853c60f1a713b39a6b190a3bd40900.tar.xz |
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>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgfuncs.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 1afc908..91df5b7 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -388,7 +388,7 @@ function package_details($id=0, $SID="") { // $darr[3] is the DepCondition 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 "</table></td>"; @@ -414,7 +414,7 @@ function package_details($id=0, $SID="") { // $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"; + else print "<a href='http://archlinux.org/packages/search/".$darr[1]."'>".$darr[1].$darr[3]."</a><br />\n"; } echo "</td></tr>\n"; echo " </table>\n"; |