summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-05-03 18:01:49 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-05-03 18:08:57 +0200
commit782e9eb1882ab5d5792ca0e4ae5f652550bc72aa (patch)
tree90eee22b7d242afba420f29f6acff1bda9abf8db /web/html/pkgsubmit.php
parente161c4f94b75b26f115f6953cdc67a543cf89ec2 (diff)
downloadaur-782e9eb1882ab5d5792ca0e4ae5f652550bc72aa.tar.gz
aur-782e9eb1882ab5d5792ca0e4ae5f652550bc72aa.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 180a0b24..7b7023b9 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;
}