[aur-dev] [PATCH 1/1] use square brackets for annotations in pkg dependencies

Christian Hesse list at eworm.de
Tue Oct 6 08:51:29 UTC 2015


From: Christian Hesse <mail at eworm.de>

Currently a package depending on `markdown` will have a listed
dependency that looks like this:

markdown (discount) (make)

Where `dicount` is a package that provides `markdown`, make is an
annotation to express the type of dependency.

Let's use square brackets for annotations in pkg dependencies, so this
looks like:

markdown (discount) [make]

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 web/lib/pkgfuncs.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 66bc249..b1a271b 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -253,7 +253,7 @@ function pkg_deplink_annotation($type, $arch, $desc=false) {
 		return '';
 	}
 
-	$link = ' <em>(';
+	$link = ' <em>[';
 
 	if ($type == 'makedepends') {
 		$link .= 'make';
@@ -271,7 +271,7 @@ function pkg_deplink_annotation($type, $arch, $desc=false) {
 		$link .= htmlspecialchars($arch);
 	}
 
-	$link .= ')';
+	$link .= ']';
 	if ($type == 'optdepends' && $desc) {
 		$link .= ' – ' . htmlspecialchars($desc) . ' </em>';
 	}
-- 
2.6.1


More information about the aur-dev mailing list