From a4caf652ee05860734b69d00ecbb29da870b3cc6 Mon Sep 17 00:00:00 2001 From: gesh Date: Thu, 2 May 2024 20:35:20 +0300 Subject: [PATCH] framework: enable setting *unset* dep versions --- PKGBUILD | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 2908daebcce1..80588db2a31d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -31,10 +31,9 @@ pkgver() { _bumpVer() { yq -i --yaml-output --arg pkg "$1" --arg ver "$2" \ "$(cat <<'EOF' - (."extra-deps".[] - | strings - | select(match("^\($pkg)-[0-9.]+"))) - |= $pkg + "-" + $ver + ."extra-deps" + |= del(.[] | select(match("^\($pkg)-[0-9.]+"))) + + [ "\($pkg)-\($ver)" ] EOF )" stack.yaml }