Strip whitespace from .AURINFO lines

Indentation can be useful if one wants to structure an .AURINFO file.
Remove leading and trailing whitespace from each line before parsing.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-01-17 10:36:32 +01:00
parent b0c55ae5c6
commit d428da4780

View file

@ -263,6 +263,7 @@ if ($uid):
unset($pkg_version);
$depends = array();
foreach (explode("\n", $srcinfo_raw) as $line) {
$line = trim($line);
if (empty($line) || $line[0] == '#') {
continue;
}