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 <[email protected]> --- 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
