Bug 105114 - update_dat script for port security/vscan no longer skips download if no change
Summary: update_dat script for port security/vscan no longer skips download if no change
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jeh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 14:10 UTC by Larry Rosenman
Modified: 2006-11-03 14:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rosenman freebsd_committer freebsd_triage 2006-11-03 14:10:24 UTC
Apparently McAfee stopped shipping the file_id.diz file in the tar balls on
October 27.  I made the following change to make it work with the current file
set.

Fix: 

# 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


(I don't have the exact line numbers, as I have other local changes, so this
is submitted as a general idea).
How-To-Repeat: run update_dat twice, see that it still downloads the file even when it's current.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-11-03 14:10:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jeh

Over to maintainer
Comment 2 jeh freebsd_committer freebsd_triage 2006-11-03 14:25:40 UTC
State Changed
From-To: open->closed

Commited, thanks.
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-11-03 14:26:52 UTC
jeh         2006-11-03 14:25:24 UTC

  FreeBSD ports repository

  Modified files:
    security/vscan       Makefile 
    security/vscan/files update_dat 
  Log:
  Fix update_dat so it won't repeatedly fetch the same DAT file
  
  PR:     105114
  
  Revision  Changes    Path
  1.41      +1 -0      ports/security/vscan/Makefile
  1.2       +2 -2      ports/security/vscan/files/update_dat
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"