From d56af4d393ed87ebacd0a44673ba65fbe7b6a45f Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Fri, 1 Dec 2023 23:14:04 +0200 Subject: [PATCH] Replace packages branch literal by an expression --- .buildbot/openwrt/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildbot/openwrt/build.sh b/.buildbot/openwrt/build.sh index 566cf0e..76f59f7 100755 --- a/.buildbot/openwrt/build.sh +++ b/.buildbot/openwrt/build.sh @@ -24,7 +24,9 @@ cd openwrt-sdk-*/ cp feeds.conf.default feeds.conf cat ${pwd}/feeds.conf >> feeds.conf -sed -i "s/\(packages.git\)\^.*/\1;openwrt-22.03/g" feeds.conf +OPENWRT_BRANCH=$(echo ${OPENWRT_VERSION} | cut -d. -f 1,2) + +sed -i "s/\(packages.git\)\^.*/\1;openwrt-${OPENWRT_BRANCH}/g" feeds.conf ./scripts/feeds update -a ./scripts/feeds install -a