pmaports w/ reMarkable 1 packages
![]() 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
|
||
---|---|---|
.ci | ||
.githooks | ||
.gitlab/issue_templates | ||
cross | ||
device | ||
main | ||
modem | ||
temp | ||
.clang-format | ||
.ecrc | ||
.editorconfig | ||
.gitignore | ||
.gitlab-ci.yml | ||
.mrhlpr.json | ||
channels.cfg | ||
CODEOWNERS | ||
COMMITSTYLE.md | ||
LICENSE | ||
pmaports.cfg | ||
README.md |
postmarketOS aports
Helpful resources: