test_aports.py: disallow noarch device packages
Check if all device packages have the same arch in their device APKBUILD as they have in their deviceinfo. And that they have !archcheck set in the options.
This commit is contained in:
parent
658b6c75c9
commit
ac6c0a2997
1 changed files with 9 additions and 0 deletions
|
@ -83,6 +83,15 @@ def test_aports_device(args):
|
||||||
" subpackages now, see"
|
" subpackages now, see"
|
||||||
" <https://postmarketos.org/devicepkg>.")
|
" <https://postmarketos.org/devicepkg>.")
|
||||||
|
|
||||||
|
# Architecture
|
||||||
|
device = apkbuild["pkgname"][len("device-"):]
|
||||||
|
deviceinfo = pmb.parse.deviceinfo(args, device)
|
||||||
|
if "".join(apkbuild["arch"]) != deviceinfo["arch"]:
|
||||||
|
raise RuntimeError("wrong architecture, please change to arch=\"" +
|
||||||
|
deviceinfo["arch"] + "\": " + path)
|
||||||
|
if "!archcheck" not in apkbuild["options"]:
|
||||||
|
raise RuntimeError("!archcheck missing in options= line: " + path)
|
||||||
|
|
||||||
|
|
||||||
def test_aports_device_kernel(args):
|
def test_aports_device_kernel(args):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue