pmbootstrap/pmb
Oliver Smith 5438085e62
pmb/parse/_apkbuild: fix parsing commented lines (!1837)
Properly ignore comments at the end of lines, instead of assuming that
all lines below belong to the attribute:
	subpackages="$pkgname-dev" # $pkgname-lang

Fixes build.postmarketos.org#61, where pmbootstrap would assume that a
random package provides "make", just because the word "make" is written
somewhere below subpackages=" in the APKBUILD and it is parsed
incorrectly.

While at it, also support the ' character for quotations and detect if
a quotation for a value was started, but there is no end quotation sign
in the rest of the file.

I've added tests, and manually checked that this did not introduce any
parsing bugs for all the APKBUILDs in pmaports.git, by running
'pmbootstrap apkbuild_parse' with the old and new code, and diffing the
result.
2019-11-30 12:44:06 +01:00
..
aportgen Detect if DTB is placed in second area of Android boot image (!1828) 2019-10-25 17:36:22 +02:00
build pmb/build/_package.py: create .git symlink (!1831) 2019-11-10 12:29:55 +01:00
chroot replace_aports_packages_with_path: better error (!1837) 2019-11-30 12:43:10 +01:00
config pmb.config.build_packages: add git (!1832) 2019-11-24 20:39:36 +01:00
data pmb/data/keys/pmos-5a03a13a.rsa.pub: remove (!1835) 2019-11-21 23:52:25 +01:00
export Update copyright to 2019 2019-01-02 09:31:20 +01:00
flasher Revert "Add "flash_fastboot_vendor_id" deviceinfo variable for fastboot flash method (#857)" (!1818) 2019-09-26 22:32:53 +02:00
helpers pmb.config.init: 2-step device selection (!1825) 2019-10-30 22:51:33 +01:00
install install: setup xorg keymap (!1833) 2019-11-20 21:57:58 +01:00
parse pmb/parse/_apkbuild: fix parsing commented lines (!1837) 2019-11-30 12:44:06 +01:00
qemu qemu/spice: use virt-viewer client directly from chroot (!1793) 2019-07-05 20:51:01 +02:00
__init__.py init: fix missing errors if logs didn't initialize (!1755) 2019-02-15 16:01:11 +01:00