diff options
author | jeh <jeh@FreeBSD.org> | 2004-10-21 01:20:53 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2004-10-21 01:20:53 +0800 |
commit | a8bd050057e7c654d1ffa0bb1f3150fa4c74c764 (patch) | |
tree | 7eb6a6db3da0c854576cfc1656323b9ad6eb9c26 | |
parent | 30ee9644f285aef9a2780fa395d2a91ad4d89bda (diff) | |
download | freebsd-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_dat | 4 |
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 |