pmaports/.ci
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
..
lib ci: fix failure with check_changed_aports when testing new aport 2024-04-23 17:59:30 -07:00
testcases ci: allow specifying pmbootstrap path to aid running locally (MR 4994) 2024-04-22 16:37:41 -07:00
apkbuild-lint.sh CI: adjust scripts to pass shellcheck (MR 3960) 2023-03-20 09:30:55 +01:00
build-aarch64.sh CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build-armhf.sh CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build-armv7.sh CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build-riscv64.sh CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build-x86.sh CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
build-x86_64.sh CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608) 2022-11-17 19:10:56 +01:00
codeowners.sh CI: add CODEOWNERS file sanity check (MR 4662) 2023-12-29 15:02:10 +01:00
commits.sh CI: bump copyright to 2023 2023-01-26 08:40:40 +01:00
ec.sh CI scripts: fix typo in URL (MR 3655) 2022-11-20 16:50:42 +01:00
grep.sh CI: check for "before wpa_supplicant" in OpenRC service files (MR 4769) 2024-02-21 21:19:12 +01:00
kconfig.sh CI: kconfig: don't print unrelated warnings (MR 3961) 2023-03-22 09:40:39 -07:00
pytest.sh CI: adjust scripts to pass shellcheck (MR 3960) 2023-03-20 09:30:55 +01:00
ruff.sh ci: replace Flake8 with Ruff (MR 4741) 2024-01-19 18:06:09 +01:00
shellcheck.sh CI: remove postmarketos-update-kernel from Shellcheck check (MR 5045) 2024-04-20 11:15:33 +02:00
wiki.sh CI scripts: fix typo in URL (MR 3655) 2022-11-20 16:50:42 +01:00