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

This commit is contained in:
chess.griffin 2009-10-30 21:12:16 +00:00
parent b6cfb9f55b
commit 028971b50a

View File

@ -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