From 028971b50a73145665ecaa5feca3aa9ef96e79b5 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Fri, 30 Oct 2009 21:12:16 +0000 Subject: [PATCH] commit a patch from Mauro that add an unset before an eval otherwise BUILD gets stuck once and not reset set which can show incorrect potential updates --- src/usr/sbin/sbopkg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index b0c83e2..1f394b6 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -698,6 +698,7 @@ check_for_updates() { # Extract the new package version if [[ ! -z $NEWSB ]]; then + unset ARCH BUILD eval NEW$(grep -m1 ^ARCH= $NEWSB) eval NEW$(grep -m1 ^BUILD= $NEWSB) [[ -z $NEWARCH ]] && NEWARCH=unknown @@ -3640,6 +3641,7 @@ process_queue() { rm -f $PKGPATH/$CHKBUILD*.build return 0 else + unset BUILD eval $(grep -m1 "^BUILD" $PKGPATH/$CHKBUILD.SlackBuild.build) echo " Using $PICKFILE SlackBuild file" >> $TMPLOG-files fi