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
|
||
---|---|---|
.. | ||
add_pmbootstrap_to_import_path | ||
apkbuild_linting.py | ||
build_changed_aports.py | ||
build_changed_aports.sh | ||
check_changed_aports_versions.py | ||
check_changed_kernels.py | ||
check_devices_in_wiki.py | ||
common.py | ||
gitlab_prepare_ci.sh | ||
move_logs.sh |