mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
b0c55ae5c6
commit
d428da4780
1 changed files with 1 additions and 0 deletions
|
@ -263,6 +263,7 @@ if ($uid):
|
||||||
unset($pkg_version);
|
unset($pkg_version);
|
||||||
$depends = array();
|
$depends = array();
|
||||||
foreach (explode("\n", $srcinfo_raw) as $line) {
|
foreach (explode("\n", $srcinfo_raw) as $line) {
|
||||||
|
$line = trim($line);
|
||||||
if (empty($line) || $line[0] == '#') {
|
if (empty($line) || $line[0] == '#') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue