image: apk: dont fail on removing a package that doesnt exist
authorRobert Marko <robimarko@gmail.com>
Thu, 28 Nov 2024 18:16:23 +0000 (19:16 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 29 Nov 2024 10:31:56 +0000 (11:31 +0100)
commit55dfe3fcea88c108c8b89e96138975965e60bc08
tree76d750d51730ee54f864d08a8a02db4adb01b5b8
parent5a4eb56a7bc7d1d8028d103d50b0dba2ff7808c4
image: apk: dont fail on removing a package that doesnt exist

Currently, in case when a package in the device package list is marked with
the "-"" prefix meaning that its supposed to be removed for that device but
it was not actually previously built it will cause the APK to error out it
and thus image generation will also fail.

So, lets do what OPKG build step does and supress the error with the "-"
prefix in make.

Fixes: #17103
Fixes: d788ab376f85 ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17106
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/image.mk