pmaports/.ci/lib
Clayton Craft a263494c1c
ci: fix failure with check_changed_aports when testing new aport
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 07812a918 I goofed up and changed this
behavior, so let's restore it to fix the crash.
2024-04-23 17:59:30 -07:00
..
add_pmbootstrap_to_import_path CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
apkbuild_linting.py CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build_changed_aports.py CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build_changed_aports.sh CI scripts: fix typo in URL (MR 3655) 2022-11-20 16:50:42 +01:00
check_changed_aports_versions.py ci: fix failure with check_changed_aports when testing new aport 2024-04-23 17:59:30 -07:00
check_changed_kernels.py CI: kconfig: don't print unrelated warnings (MR 3961) 2023-03-22 09:40:39 -07:00
check_devices_in_wiki.py ci: fix format specifier typo in wiki script (MR 5038) 2024-04-16 09:05:05 +03:00
common.py CI: CI runs for three hours, not one hour (MR 4135) 2023-05-30 09:12:52 +02:00
gitlab_prepare_ci.sh CI: bump copyright to 2023 2023-01-26 08:40:40 +01:00
move_logs.sh CI: adjust scripts to pass shellcheck (MR 3960) 2023-03-20 09:30:55 +01:00