pmbootstrap/pmb/config
Minecrell 0e27713512
pmb.parse._apkbuild: Extend APKBUILD parser to work for subpackages (!1866)
At the moment we have a simple subpkgdesc() function that can only
parse "pkgdesc" from subpackages, without support for any variables.
But we have a quite nice variable parser now that can be extended
to work for subpackages.

Simply put this works by:
  - Finding the lines that belong to the subpackage function
  - Stripping indentation (tab)
  - Parsing relevant attributes similar to the apkbuild() function

The "subpackages" in the parsed APKBUILD are replaced by a dict
of subpkgname: {"pkgdesc": "...", "depends": "..."} which are
parsed from the subpackage function (if found).
This makes it possible to get the "depends" of a subpackage.
2020-02-19 14:56:57 +03:00
..
__init__.py pmb.parse._apkbuild: Extend APKBUILD parser to work for subpackages (!1866) 2020-02-19 14:56:57 +03:00
init.py pmb.parse._apkbuild: Extend APKBUILD parser to work for subpackages (!1866) 2020-02-19 14:56:57 +03:00
load.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
merge_with_args.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
pmaports.py pmbootstrap pull: new action (!1848) 2020-01-19 20:37:46 +03:00
save.py Change copyright to 2020 2020-01-06 02:43:00 +01:00