From a8bd050057e7c654d1ffa0bb1f3150fa4c74c764 Mon Sep 17 00:00:00 2001 From: jeh Date: Wed, 20 Oct 2004 17:20:53 +0000 Subject: Base if the last update was successful on the dontents of file_id.diz, since that is in the .tar and will only update after a successful download and extract Submitted By: Steven Guerin --- security/uvscan-dat/files/update_dat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat index bdb0ef9e608c..772b1eb368e2 100644 --- a/security/uvscan-dat/files/update_dat +++ b/security/uvscan-dat/files/update_dat @@ -6,8 +6,8 @@ cd @PREFIX@/libexec/uvscan/ # Force a low default and then get the current version's value cur_AVVER="1" -if [ -f update.ini ]; then - cur_AVVER=`grep DATVersion update.ini | head -1 | cut -f2 -d= | sed -e 's/^\(4[0-9]*\).$/\1/'` +if [ -f file_id.diz ]; then + cur_AVVER=`tail -1 file_id.diz | sed -e 's/^(\(4[0-9]*\)).*$/\1/'` fi # Find what the website has for the current version -- cgit