test/aports: detect linux-firmware-* in depends

All firmware packages go into subpackages nowadays, so we have them
optional. The `test/test_aports.py` file has a test case, that makes
sure that there are no firmware packages in the `depends` of a device
package. So far we have only checked for `firmware-*` and
`linux-firmware`, this commit makes it check for `linux-firmware*` as
well.

In addition, the URL displayed in the "Please use kernel subpackages"
message has been fixed (points to devicepkg instead of deviceinfo now).
This commit is contained in:
Oliver Smith 2018-07-13 05:46:25 +00:00
parent 2399cbb373
commit d648794f7a
1 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,8 @@ def test_aports_device(args):
# Depends: Must not have firmware packages
for depend in apkbuild["depends"]:
if depend.startswith("firmware-") or depend == "linux-firmware":
if (depend.startswith("firmware-") or
depend.startswith("linux-firmware")):
raise RuntimeError("Firmware package '" + depend + "' found in"
" depends of " + path + ". These go into"
" subpackages now, see"
@ -112,7 +113,7 @@ def test_aports_device_kernel(args):
if len(kernels_depends) > 1:
raise RuntimeError("Please use kernel subpackages instead of"
" multiple kernels in depends (see"
" <https://postmarketos.org/deviceinfo>): " +
" <https://postmarketos.org/devicepkg>): " +
path)
# Verify subpackages