pmbootstrap/pmb/helpers
Oliver Smith b18ec9a693
pmb.helpers.package.get: no crash if dep missing (!1909)
Fix the function, so it does not crash anymore when the
replace_subpkgnames argument is set and a dependency cannot be resolved.
Instead, print a useful warning that shows which pmaport caused the
error (that has always been a pain to figure out), and simply don't
replace the potential subpkgname with the real pkgname, just use the
dependency name as-is.

Resolve annoying crashes in bpo dependency resolving, like this one
(caused by a few linux-* pmaports for bad downstream kernels that depend
on python, not apparent at all from the message):

[09:08:15] Calculate packages that need to be built (all packages, aarch64)
[09:08:26] ERROR: Package 'python': Could not find aport, and could not find this package in any APKINDEX!

Related: https://builds.sr.ht/~postmarketos/job/184022
2020-04-10 19:34:09 +02:00
..
__init__.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
aportupgrade.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
args.py pmbootstrap pull: skip pmaports version check (!1908) 2020-04-06 16:34:22 +02:00
cli.py pmb.helpers.cli: add tab completion option for ask() helper (!1875) 2020-02-26 01:20:18 +03:00
devices.py pmb: Look for device/* files in device/*/... instead (!1879) 2020-03-14 08:44:16 +01:00
file.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
frontend.py pmb.helpers.frontend.config: add option to reset config to default (!1907) 2020-04-07 01:02:19 +03:00
git.py pmbootstrap status: check if git repo is outdated (!1882) 2020-03-14 19:15:32 +03:00
http.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
lint.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
logging.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
mount.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
other.py pmb: Fail on device ports directly in device/* (!1879) 2020-03-14 08:44:53 +01:00
package.py pmb.helpers.package.get: no crash if dep missing (!1909) 2020-04-10 19:34:09 +02:00
pkgrel_bump.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
pmaports.py pmb.helpers.pmaports: change some frequent messages to .verbose() (!1898) 2020-03-31 23:58:44 +02:00
repo.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
repo_missing.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
run.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
run_core.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
status.py pmbootstrap status: check if git repo is outdated (!1882) 2020-03-14 19:15:32 +03:00
ui.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00