summaryrefslogtreecommitdiff
path: root/distrib/syspatch
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2019-05-12 15:30:19 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2019-05-12 15:30:19 +0000
commit3344015249179fad355039ade9e9b38178cf6c15 (patch)
tree529677600069bad9bee763896bda24459427df65 /distrib/syspatch
parent704409d51f42c14c0f4c7308b4f141c3dceede04 (diff)
exit early if the errata name is invalid to avoid building a syspatch
that cannot be installed
Diffstat (limited to 'distrib/syspatch')
-rw-r--r--distrib/syspatch/bsd.syspatch.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/syspatch/bsd.syspatch.mk b/distrib/syspatch/bsd.syspatch.mk
index 28a913880b8..04265a1dab5 100644
--- a/distrib/syspatch/bsd.syspatch.mk
+++ b/distrib/syspatch/bsd.syspatch.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.syspatch.mk,v 1.24 2018/11/18 15:30:04 ajacoutot Exp $
+# $OpenBSD: bsd.syspatch.mk,v 1.25 2019/05/12 15:30:18 robert Exp $
#
# Copyright (c) 2016-2017 Robert Nagy <robert@openbsd.org>
#
@@ -76,6 +76,10 @@ depend:
cleandir: clean
${_FAKE_COOKIE}:
+.if !empty(ERRATA:C/[[:digit:]]{3}_[[:alnum:]_]+//)
+ @{ echo "***> invalid errata format: ${ERRATA}"; \
+ exit 1; };
+.endif
.ifndef FAKEROOT
@{ echo "***> setenv FAKEROOT before doing that!"; \
exit 1; };