[aur-dev] [PATCH] don't treat colon as part of package dependency name

Daniel Albers daniel at lbe.rs
Mon Nov 25 07:14:15 EST 2013


Dependencies can have a description appended, separated by a colon.
Don't treat this colon as part of the dependency name.

Signed-off-by: Daniel Albers <daniel at lbe.rs>
---
 web/html/pkgsubmit.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index d2fe512..305acc7 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -421,7 +421,7 @@ if ($uid):
 			}
 			if (!empty($depends)) {
 				foreach ($depends as $dep) {
-					$deppkgname = preg_replace("/(<|<=|=|>=|>).*/", "", $dep);
+					$deppkgname = preg_replace("/(<|<=|=|>=|>|:).*/", "", $dep);
 					$depcondition = str_replace($deppkgname, "", $dep);
 
 					if ($deppkgname == "") {
-- 
1.8.4.2



More information about the aur-dev mailing list