Fix update_dat so it won't repeatedly fetch the same DAT file
PR: 105114
This commit is contained in:
parent
47af927410
commit
66f86ccc3a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176276
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= uvscan
|
||||
PORTVERSION= 5.10e
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://download.nai.com/products/evaluation/virusscan/english/cmdline/bsd/v5.10/
|
||||
DISTNAME= vbsd510e
|
||||
|
@ -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 "file_id.diz" ]; then
|
||||
cur_AVVER="`tail -1 file_id.diz | sed -e 's/^(\(4[0-9]*\)).*$/\1/'`"
|
||||
if [ -f pkgdesc.ini ]; then
|
||||
cur_AVVER=`grep Version pkgdesc.ini | cut -f2 -d= |sed -e 's/^(\(4[0-9]+\)).*$/\1/'`
|
||||
fi
|
||||
|
||||
# Find what the website has for the current version
|
||||
|
Loading…
Reference in New Issue
Block a user