pmbootstrap/pmb
Minecrell 3aabaf451c
pmb.parse._apkbuild: Set default attribute values before starting to parse (!866)
Theoretically it is possible to reference variables before they are defined.
In the shell, these will simply be evaluated to an empty string.
In preparation of replacing variables immediately after parsing attributes,
these variables will be no longer replaced correctly.

We can simplify the code further, and avoid this problem by initializing
the dict with the default values, replacing them with the real values
from the APKBUILD.

This will also avoid a (somewhat unrelated) error in the bootimg test:

  File "pmb/parse/_apkbuild.py", line 46, in replace_variable
    apkbuild["pkgname"], match.group(0),
  KeyError: 'pkgname'
2020-02-19 14:56:35 +03:00
..
aportgen pmb.aportgen.linux: Fix linting issues in generated APKBUILDs (!1869) 2020-02-02 06:49:12 +03:00
build crossdirect: support rust (!1850) 2020-01-14 02:50:53 +01:00
chroot pmbootstrap -s: remove option (!1868) 2020-02-06 12:33:21 +01:00
config aportupgrade command for upgrading APKBUILDs (!1752) 2020-02-15 20:24:09 +01:00
data pmb/data/keys/pmos-5a03a13a.rsa.pub: remove (!1835) 2019-11-21 23:52:25 +01:00
export pmb.flasher/export: Add --no-install option to skip kernel/initfs update (!1863) 2020-01-31 01:35:26 +01:00
flasher add "fastboot-bootpart" flasher to flash split images with fastboot (!1871) 2020-02-10 00:05:00 +03:00
helpers aportupgrade command for upgrading APKBUILDs (!1752) 2020-02-15 20:24:09 +01:00
install add "fastboot-bootpart" flasher to flash split images with fastboot (!1871) 2020-02-10 00:05:00 +03:00
parse pmb.parse._apkbuild: Set default attribute values before starting to parse (!866) 2020-02-19 14:56:35 +03:00
qemu pmb.qemu.run.install_depends: Fix Mesa Gallium DRI depends (!1867) 2020-01-31 04:10:50 +01:00
__init__.py Change copyright to 2020 2020-01-06 02:43:00 +01:00