summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf>2004-04-12 13:01:52 +0000
committerhubertf <hubertf>2004-04-12 13:01:52 +0000
commita70f800f222c9323bd07d00d76563707794ce357 (patch)
tree863d3cf6ba0e5bbc04cc0a4f67cc1382b4906741
parentee71d00954ddb734d12f59d4fb438d0fb3a6e00e (diff)
downloadpkgsrc-a70f800f222c9323bd07d00d76563707794ce357.tar.gz
Catch UPDATE_VULNERABILITY_LIST being unset, default to be conservative
and run it if it's not explicitly set to "no"
-rw-r--r--mk/bulk/upload4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/upload b/mk/bulk/upload
index 73ce7275c70..bcbd7df38bb 100644
--- a/mk/bulk/upload
+++ b/mk/bulk/upload
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: upload,v 1.16 2004/03/16 13:55:51 hubertf Exp $
+# $NetBSD: upload,v 1.17 2004/04/12 13:01:52 hubertf Exp $
#
# Upload non-restricted binary pkgs to ftp server
@@ -73,7 +73,7 @@ distdir=`cd pkgtools/pkglint ; ${BMAKE} show-var VARNAME=DISTDIR`
( cd security/audit-packages ; ${BMAKE} bulk-install )
echo "Making sure vulnerability-list is upto date:"
-if [ $UPDATE_VULNERABILITY_LIST = "yes" ]
+if [ -z "$UPDATE_VULNERABILITY_LIST" -o "$UPDATE_VULNERABILITY_LIST" = "yes" ]
then
env PKGVULNDIR=${distdir} download-vulnerability-list
else