pmbootstrap/pmb/helpers
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 Change copyright to 2020 2020-01-06 02:43:00 +01:00
aportupgrade.py aportupgrade command for upgrading APKBUILDs (!1752) 2020-02-15 20:24:09 +01:00
args.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
cli.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
devices.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
file.py pmb.helpers.file: add replace_apkbuild helper (!1752) 2020-02-15 20:24:04 +01:00
frontend.py aportupgrade command for upgrading APKBUILDs (!1752) 2020-02-15 20:24:09 +01:00
git.py pmbootstrap pull: new action (!1848) 2020-01-19 20:37:46 +03:00
http.py pmb.helpers.http: add retrieve & retrieve_json helpers (!1752) 2020-02-15 20:24:09 +01:00
lint.py pmb.helpers.lint: add simple linting (!1855) 2020-02-06 13:45:21 +01:00
logging.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
mount.py pmb.helpers.mount: bind_file: Add create_folders option (!1861) 2020-01-26 19:47:42 +01:00
other.py pmb.helpers.git.clone: use git from host system (!1845) 2020-01-12 00:39:47 +01:00
package.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
pkgrel_bump.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
pmaports.py pmb.parse._apkbuild: Extend APKBUILD parser to work for subpackages (!1866) 2020-02-19 14:56:57 +03:00
repo.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
repo_missing.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
run.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
run_core.py Change copyright to 2020 2020-01-06 02:43:00 +01:00
ui.py Change copyright to 2020 2020-01-06 02:43:00 +01:00