diff options
| author | James E. Housley <jeh@FreeBSD.org> | 2006-11-03 14:25:24 +0000 |
|---|---|---|
| committer | James E. Housley <jeh@FreeBSD.org> | 2006-11-03 14:25:24 +0000 |
| commit | 66f86ccc3afc2e5d32653457e5cc588487312282 (patch) | |
| tree | 7c949218c19afc3a33907b6833a271937f5d0983 /security/vscan/files/update_dat | |
| parent | - Update to 2.3.2 (diff) | |
Fix update_dat so it won't repeatedly fetch the same DAT file
PR: 105114
Notes
Notes:
svn path=/head/; revision=176276
Diffstat (limited to 'security/vscan/files/update_dat')
| -rw-r--r-- | security/vscan/files/update_dat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/vscan/files/update_dat b/security/vscan/files/update_dat index 29283944a82e..81edcf12841c 100644 --- a/security/vscan/files/update_dat +++ b/security/vscan/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 "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 |
