[aur-dev] [PATCH 03/13] routing.inc.php: Add get_pkgbase_uri()

Lukas Fleischer archlinux at cryptocrack.de
Sat Apr 5 07:59:43 EDT 2014


This will be used to create links to package base pages later. For now,
this just returns a link to the corresponding package page since a
package base currently only consists of a single package having the same
name as the base itself.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/lib/routing.inc.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/web/lib/routing.inc.php b/web/lib/routing.inc.php
index 206886c..b1e5be2 100644
--- a/web/lib/routing.inc.php
+++ b/web/lib/routing.inc.php
@@ -58,6 +58,10 @@ function get_pkg_uri($pkgname) {
 	}
 }
 
+function get_pkgbase_uri($pkgbase_name) {
+	return get_pkg_uri($pkgbase_name);
+}
+
 function get_user_route() {
 	global $USER_PATH;
 	return $USER_PATH;
-- 
1.9.1



More information about the aur-dev mailing list