pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/audit-packages Make it a separate warning if ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be08ff72f66d
branches:  trunk
changeset: 472913:be08ff72f66d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 14 09:04:15 2004 +0000

description:
Make it a separate warning if downloading the file
failed completely. Welcome to 1.30.

diffstat:

 security/audit-packages/Makefile                          |  4 ++--
 security/audit-packages/files/download-vulnerability-list |  9 ++++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r e156e55aaff2 -r be08ff72f66d security/audit-packages/Makefile
--- a/security/audit-packages/Makefile  Wed Apr 14 08:05:03 2004 +0000
+++ b/security/audit-packages/Makefile  Wed Apr 14 09:04:15 2004 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2004/04/11 18:14:53 jschauma Exp $
+# $NetBSD: Makefile,v 1.47 2004/04/14 09:04:15 wiz Exp $
 
-DISTNAME=      audit-packages-1.29
+DISTNAME=      audit-packages-1.30
 CATEGORIES=    security pkgtools
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r e156e55aaff2 -r be08ff72f66d security/audit-packages/files/download-vulnerability-list
--- a/security/audit-packages/files/download-vulnerability-list Wed Apr 14 08:05:03 2004 +0000
+++ b/security/audit-packages/files/download-vulnerability-list Wed Apr 14 09:04:15 2004 +0000
@@ -1,6 +1,6 @@
 #! @SH@
 
-# $NetBSD: download-vulnerability-list,v 1.23 2004/02/09 03:56:34 jlam Exp $
+# $NetBSD: download-vulnerability-list,v 1.24 2004/04/14 09:04:15 wiz Exp $
 #
 # Copyright (c) 2000-2003 Alistair Crooks.  All rights reserved.
 #
@@ -61,6 +61,13 @@
        ;;
 esac
 
+# see if we got a file
+if [ ! -f "${NEW_VUL_LIST}" ]
+then
+       echo "***WARNING*** Download of vulnerabilities file failed" 1>&2
+       exit 1
+fi
+
 # see if the file got damaged while it was being downloaded
 errmsg=""
 recordedsum=`@AWK@ '$1 == "#CHECKSUM" { print $3 }' ${NEW_VUL_LIST}`



Home | Main Index | Thread Index | Old Index