a263494c1c
Apparently some callers of `get_package_version` expect it to return
None if a package wasn't found... e.g. when CI is testing a branch that
introduces a new aport and it's trying to get the upstream version for
it, which doesn't exist.
This leads to a spectacular crash in CI:
upstream = get_package_version(args, package, commit, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/clayton/src/pmaports/./.ci/lib/check_changed_aports_versions.py", line 47, in get_package_version
return parsed["pkgver"] + "-r" + parsed["pkgrel"]
~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
When I refactored this method in
|
||
---|---|---|
.. | ||
lib | ||
testcases | ||
apkbuild-lint.sh | ||
build-aarch64.sh | ||
build-armhf.sh | ||
build-armv7.sh | ||
build-riscv64.sh | ||
build-x86.sh | ||
build-x86_64.sh | ||
codeowners.sh | ||
commits.sh | ||
ec.sh | ||
grep.sh | ||
kconfig.sh | ||
pytest.sh | ||
ruff.sh | ||
shellcheck.sh | ||
wiki.sh |