On Mon, Nov 25, 2013 at 7:14 AM, Daniel Albers <daniel@lbe.rs> wrote:
Dependencies can have a description appended, separated by a colon. Don't treat this colon as part of the dependency name.
I know that optdepends often have the dependency name followed by a colon and a description of the package. I don't recall ever seeing a package description within the depends array...
Signed-off-by: Daniel Albers <daniel@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