From 06d03d8e2867f8861c727f66287b276d229baf8f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 31 Jul 2025 08:28:55 -0400 Subject: [PATCH] rgnano: More aggressively update the "installed" version The current code checks the date listed in the "Version" string in rockbox-info.txt, and updates if the new package has a newer date. However this is not granular enough, especially when you are iterating multiple builds on a single day. It also prevents downgrading to an older build. So, instead of checking for a newer date, apply the update if the new version string (including the commit id) is merely *different* than the installed one. Change-Id: Ie5d10ffe011afd1efb3c76c77a3ed19d36df9321 --- packaging/rgnano/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/rgnano/run.sh b/packaging/rgnano/run.sh index 194631d0df..41a92a21c4 100755 --- a/packaging/rgnano/run.sh +++ b/packaging/rgnano/run.sh @@ -11,10 +11,10 @@ if [ ! -d $RBDIR ]; then cp -r ./install/* $RBDIR notif clear else - OPKV=$(cat ./install/rockbox-info.txt | grep Version: | cut -d'-' -f2) - SDV=$(cat $RBDIR/rockbox-info.txt | grep Version: | cut -d'-' -f2) + OPKV=$(cat ./install/rockbox-info.txt | grep Version) + SDV=$(cat $RBDIR/rockbox-info.txt | grep Version) - if [[ $OPKV -gt $SDV ]]; then + if [[ "$OPKV" != "$SDV" ]]; then notif set 0 " Updating rockbox..." cp -r -f -u ./install/* $RBDIR notif clear