mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-27 23:47:19 +01:00
imagebuilder: fix parsing ABI for apk packages
Fix parsing ABI when package has multiple tags and apk returns them in a
single line.
Fixes: 31cdd13d ("imagebuilder: add ABI suffix to packages when using apk")
Signed-off-by: George Sapkin <george@sapk.in>
Link: https://github.com/openwrt/openwrt/pull/21660
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
7c26668217
commit
5f889eaacd
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ endif
|
|||
#
|
||||
# 1: package name
|
||||
define GetABISuffix
|
||||
$(shell $(APK) query --fields tags --match provides $(1) | grep openwrt:abiversion | awk -F= '{print $$2; exit}')
|
||||
$(shell $(APK) query --fields tags --match provides $(1) | tr ' ' '\n' | grep '^openwrt:abiversion=' | cut -d= -f2)
|
||||
endef
|
||||
|
||||
# Format packages by adding an ABI version suffix if found
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue