aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2004-10-21 01:20:53 +0800
committerjeh <jeh@FreeBSD.org>2004-10-21 01:20:53 +0800
commita8bd050057e7c654d1ffa0bb1f3150fa4c74c764 (patch)
tree7eb6a6db3da0c854576cfc1656323b9ad6eb9c26
parent30ee9644f285aef9a2780fa395d2a91ad4d89bda (diff)
downloadfreebsd-ports-gnome-a8bd050057e7c654d1ffa0bb1f3150fa4c74c764.tar.gz
freebsd-ports-gnome-a8bd050057e7c654d1ffa0bb1f3150fa4c74c764.tar.zst
freebsd-ports-gnome-a8bd050057e7c654d1ffa0bb1f3150fa4c74c764.zip
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
-rw-r--r--security/uvscan-dat/files/update_dat4
1 files 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