pmbootstrap/pmb/parse
Clayton Craft 58e4e86b6b
pmb.parse.parse_attribute: strip off trailing comment on attrib line (MR 2149)
The apkbuild parser could not handle cases where a line ends in a
comment but the value is not quoted.

E.g. this:

    pkgver=1.0 # I'm a comment, look at me

was being parsed to a value like this:

    1.0 # I'm a comment, look at me

... which is obviously wrong. This strips off any trailing comment on
the line, so it's parsed to the correct value.

fixes #2087
2021-12-12 16:16:30 +03:00
..
__init__.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
_apkbuild.py pmb.parse.parse_attribute: strip off trailing comment on attrib line (MR 2149) 2021-12-12 16:16:30 +03:00
apkindex.py remove unused args argument (MR 2136) 2021-11-27 14:13:33 +01:00
arch.py args.arch_native: remove (MR 2130) 2021-10-24 14:34:30 +02:00
arguments.py args.cache: remove (MR 2136) 2021-11-27 14:13:27 +01:00
binfmt_info.py remove unused args argument (MR 2130) 2021-10-24 14:34:26 +02:00
bootimg.py pmb.parse.bootimg: make boot.img readable for all after copying (MR 2105) 2021-09-13 14:40:15 +03:00
cpuinfo.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
depends.py pmb.parse.apkbuild: remove unused args argument (MR 2136) 2021-11-27 14:13:33 +01:00
deviceinfo.py parse: deviceinfo: arch is required (MR 2124) 2021-10-17 17:44:18 +02:00
kconfig.py pmb.parse.apkbuild: remove unused args argument (MR 2136) 2021-11-27 14:13:33 +01:00
version.py pmb, test: remove redundant commas (MR 2115) 2021-09-26 17:58:40 +02:00