mikkeloscar / gopkgbuild

A golang package for parsing Arch Linux PKGBUILDs
GNU General Public License v3.0
22 stars 5 forks source link

Ignore whitespace #20

Open Morganamilo opened 6 years ago

Morganamilo commented 6 years ago

Packages such as wire-desktop-bin have some messed up .SRCINFOs. Now obviously the .SRCINFOs should be fixed to be indented nicely but I do believe the srcinfo format is not white space dependant. https://wiki.archlinux.org/index.php/.SRCINFO Does say "Lines may be indented." which leads me to think it's optional.

Instead the pkgname = field should be treated as the start of a new package, no matter the indention.

This should allow gopkgbuild to be more robust and not fail to parse those weird .SRCINFOs that are different but technically correct.