summaryrefslogtreecommitdiff
path: root/security/audit-packages
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-04-14 09:04:15 +0000
committerwiz <wiz@pkgsrc.org>2004-04-14 09:04:15 +0000
commit2e6bec7127df1dbc8b351606aea30fbb13361f25 (patch)
treed653735eaf7dff2f1b5d627c12de28e41dc7f483 /security/audit-packages
parent4bad9f8047e0f58ac3a50dff53246645fbee34c0 (diff)
downloadpkgsrc-2e6bec7127df1dbc8b351606aea30fbb13361f25.tar.gz
Make it a separate warning if downloading the file
failed completely. Welcome to 1.30.
Diffstat (limited to 'security/audit-packages')
-rw-r--r--security/audit-packages/Makefile4
-rw-r--r--security/audit-packages/files/download-vulnerability-list9
2 files changed, 10 insertions, 3 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index d21ca2ee4e9..69a7afc3034 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -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 --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list
index b06f5893a49..ef2e8372089 100644
--- a/security/audit-packages/files/download-vulnerability-list
+++ b/security/audit-packages/files/download-vulnerability-list
@@ -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 @@ case "$utility" in
;;
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}`