Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Nov 2006 08:09:38 -0600
From:      Larry Rosenman <ler@lerctr.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/105114: update_dat script for port security/vscan no longer skips download if no change
Message-ID:  <E1Gfzjm-0002Tt-Fu@thebighonker.lerctr.org>
Resent-Message-ID: <200611031410.kA3EAOLX088016@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105114
>Category:       ports
>Synopsis:       update_dat script for port security/vscan no longer skips download if no change
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 03 14:10:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Larry Rosenman
>Release:        FreeBSD 6.2-PRERELEASE amd64
>Organization:
LERCTR Consulting
>Environment:
System: FreeBSD thebighonker.lerctr.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #78: Sat Oct 28 11:38:29 CDT 2006 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64


	
>Description:
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. 
>How-To-Repeat:
run update_dat twice, see that it still downloads the file even when it's current.
>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).


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Gfzjm-0002Tt-Fu>