From 8c8b7c640cb8494b2943b896ba7524ce2258dab5 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 5 Oct 2011 23:16:54 +0200 Subject: [PATCH] autoupdate: fix script if 'latest' file cant be downloaded Signed-off-by: Stephan Raue --- packages/tools/autoupdate/scripts/autoupdate.devel | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tools/autoupdate/scripts/autoupdate.devel b/packages/tools/autoupdate/scripts/autoupdate.devel index c33da10679..4642419fa2 100755 --- a/packages/tools/autoupdate/scripts/autoupdate.devel +++ b/packages/tools/autoupdate/scripts/autoupdate.devel @@ -79,6 +79,10 @@ if [ ! -f /var/lock/update.lock ]; then # compare installed version with latest released version THIS_VERSION="`echo "$THIS_VERSION" | cut -d "-" -f3 | tr -d "r"`" + if [ -Z $NEW_VERSION ]; then + NEW_VERSION="$THIS_VERSION" + fi + if [ "$THIS_VERSION" -lt "$NEW_VERSION" ]; then if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" ]; then