summaryrefslogtreecommitdiff
path: root/security/audit-packages/files
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-03-20 10:36:18 +0000
committeragc <agc@pkgsrc.org>2001-03-20 10:36:18 +0000
commitd8c525cce17a10a0fd7a1cba8930e8ec0464fec2 (patch)
tree5306135a978baed07014641273c66e53ab647d55 /security/audit-packages/files
parentc403a528b817c5ef68fbacb75682a092053eaba1 (diff)
downloadpkgsrc-d8c525cce17a10a0fd7a1cba8930e8ec0464fec2.tar.gz
Update the download-vulnerability-list script to check for the
existence of ${DISTDIR}, and to create it if it doesn't exist. This is for machines built with binary packages, which lack pkgsrc, but this way preserves the location of the vulnerabilities file. Addresses PR 12367
Diffstat (limited to 'security/audit-packages/files')
-rw-r--r--security/audit-packages/files/download-vulnerability-list5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list
index 54b46a0f18b..b0a6e643f4c 100644
--- a/security/audit-packages/files/download-vulnerability-list
+++ b/security/audit-packages/files/download-vulnerability-list
@@ -2,6 +2,11 @@
NEW_VUL_LIST=${DISTDIR}/vulnerabilities.$$
+if [ ! -e ${DISTDIR} ]; then
+ echo "Creating ${DISTDIR}"
+ /bin/mkdir -p ${DISTDIR} || (echo "Can't create ${DISTDIR}"; exit 1)
+fi
+
${FETCH_CMD} -o ${NEW_VUL_LIST} ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/vulnerabilities || \
(echo "Can't download vulnerability list"; exit 1)