From 782e9eb1882ab5d5792ca0e4ae5f652550bc72aa Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 3 May 2014 18:01:49 +0200 Subject: Fix parsing of array overrides If a depends (makedepends, checkdepends, optdepends, conflicts, provides, replaces, license, groups, source) line appears in a package section, it replaces the corresponding array from the pkgbase section. If there is a single "depends = " line in the package section, the depends array of that package is considered empty. This partly reverts the behavior introduced in commit 137a9ae (Fix parsing of array overrides, 2014-05-03). Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html/pkgsubmit.php') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 180a0b2..7b7023b 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -135,7 +135,7 @@ if ($uid): $pkginfo = array(); $section_info = array(); foreach (explode("\n", $srcinfo_raw) as $line) { - $line = trim($line); + $line = ltrim($line); if (empty($line) || $line[0] == '#') { continue; } -- cgit v1.2.3-54-g00ecf