- Oct 23, 2024
-
-
Caleb Connolly authored
So we don't go through the pain of pushing 3 times to get 3 different ruff failures in CI. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
Add a test to parse some APKINDEX data. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
should be an int, but was always a string... Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
I guess this is leftover from some experimentation. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Caleb Connolly authored
Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Oct 22, 2024
-
-
Newbyte authored
Also adapt pmb/install/recovery.py to new API for variables.py. [ci:skip-build]: already built successfully in CI
-
Sometimes these fields are not set, e.g.: pdb> p ret {'depends': ['build-base', 'bash', 'bison', 'findutils', 'flex', 'musl-dev', 'openssl-dev', 'perl', 'python3'], 'arch': 'noarch', 'version': '20241022.022230', 'pkgname': '.makedepends-linux-lenovo-21bx', 'provides': []} I hit this crash when I installed the build deps for the linux-lenovo-21bx package in the native chroot, and then ran `pmbootstrap stats` [ci:skip-build]: already built successfully in CI
-
- Oct 21, 2024
-
-
It doesn't make sense to both request the nconfig UI and the xconfig UI at the same time. Make them mutually exclusive.
-
Co-authored-by:
Stefan Hansson <newbyte@postmarketos.org> Closes #2402
-
-
* Make sure all Python modules are documented by adding a bit of shell to .ci/docs.sh * Remove non-existing module references from .rst * Fix various warnings from sphinx by adjusting Python docstrings * Add class member docs to ApkindexBlock
-
When a `noarch` APKBUILD is changed in local pmaports, `pmb install` will build it automatically but image creation will fail with the following error: ``` $ pmbootstrap install ... [12:00:43] Build is necessary for package 'postmarketos-base-ui': binary package out of date (binary: 28-r6, local pmaports: 29-r0) [12:00:48] => edge/postmarketos-base-ui: Done! ... [12:01:02] (rootfs_lenovo-21bx) % apk --no-progress --repository /home/clayton/.local/var/pmbootstrap/packages/edge add -u --virtual .pmbootstrap /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-wifi-iwd-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-qt-wayland-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-qt-tweaks-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-audio-none-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-networkmanager-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-wifi-iwd-29-r0.apk --no-interactive ... [12:01:04] ERROR: Invalid architecture: 'noarch', expected something like: x86_64, aarch64, riscv64, armhf, x86, armv7 [12:01:04] See also: <https://postmarketos.org/troubleshooting> [12:01:04] Traceback (most recent call last): File "/home/clayton/src/pmbootstrap/pmb/core/arch.py", line 42, in from_str return Arch(arch) ^^^^^^^^^^ File "/usr/lib/python3.12/enum.py", line 757, in __call__ return cls.__new__(cls, value) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/enum.py", line 1171, in __new__ raise ve_exc ValueError: 'noarch' is not a valid Arch ``` [caleb: fixed tests]
-
Make sure to annotate the parameters.
-
-
In the code where the object is made (pmb/parse/apkindex.py) depends already will become an empty array when there's no dependencies. And there's no point in having a differentiation between None and empty array.
-
Luca Weiss authored
Try to finish the migration by changing various links and texts to point to the new GitLab instance.
-
- Oct 18, 2024
-
-
pmb.parse.apkindex.providers now returns a dict of string:ApkindexBlock, probably from 71772b9b This adds type hinting to package_provider to reflect this, and fixes code that calls it to properly deal with the possible return types. Without this, building FDE images is broken.
-
- Oct 17, 2024
-
-
Luca Weiss authored
Use the new "Artifacts" directive for .ci/docs.sh and run the job in the pmbootstrap chroot to avoid needing to install sphinx dependencies on the host. Fixes #2352
-
Luca Weiss authored
And make the docs job run in the chroot now and grab the 'public/' directory so we have the built docs.
-
Luca Weiss authored
Since the return value is a file path, let's make it a Path object. Also update the docstring to reflect reality.
-
Luca Weiss authored
-
- Oct 16, 2024
-
-
Clayton Craft authored
This series breaks pmbootstrap, and that's not good[1]. A bug was filed about this (#2465), and there have been multiple attempts to fix it (! 2435 and !2436). It kinda seems like we don't have time to fix/test this for a while longer, which is fine, but given the impact this bug has I think we should be revert this series until this issue is solved/tested. 1. pmb is broken in some specific cases, which means some workflows are broken. One example is that this breaks the pmaports CI, so no work can be done in pmaports.
-
- Oct 15, 2024
-
-
Newbyte authored
Looks like an unintended leftover from debugging.
-
Newbyte authored
I tested $ pmbootstrap shutdown with this and observed no problems. All the mounts disappear in lsblk as expected. Closes postmarketOS/pmbootstrap#2423
-
Newbyte authored
And fix type errors.
-
Newbyte authored
All typing errors found with --check-untyped-defs have been fixed, so let's make mypy stricter now to avoid regressing this.
-
Newbyte authored
I'm not sure why this was annotated as a Sequence rather than list. The function clearly returns a list, not a Sequence, and the commit that originally did it[1] provides no justification. This causes problems with mypy checks in other places, so let's just annotate this as returning a list. [1]: 198f302a
-
Newbyte authored
Otherwise mypy cannot figure out the type of these.
-
- Oct 13, 2024
-
-
-
-
-
-
-
Oliver Smith authored
Now that we have moved the kconfigcheck configuration into pmaports branches via kconfigcheck.toml, it is time to get rid of the hardcoded list of valid "pmb:kconfigcheck-…" options for APKBUILDs. Generate it from the kconfigcheck.toml of the current branch, too. These options are passed from "pmbootstrap lint" to "apkbuild-lint", which we run in pmaports CI.