summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalex <halex@openbsd.org>2014-01-11 23:28:02 +0000
committerhalex <halex@openbsd.org>2014-01-11 23:28:02 +0000
commitcf65541ebafffc48125b9389b5ba9400b92940e3 (patch)
tree1fbce1699e1508bfb73eafa44551154b15173a8b
parenttest pkg key for during the 5.5-beta sequence (diff)
downloadwireguard-openbsd-cf65541ebafffc48125b9389b5ba9400b92940e3.tar.xz
wireguard-openbsd-cf65541ebafffc48125b9389b5ba9400b92940e3.zip
when selecting sets to install, postpone the xbase/comp check so the
comp set does not get readded if the xbase set is being removed later on the same input line "nice semantics" deraadt@
-rw-r--r--distrib/miniroot/install.sub13
1 files changed, 6 insertions, 7 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index df169cf0a49..bad0fbf229d 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.726 2014/01/08 21:53:35 deraadt Exp $
+# $OpenBSD: install.sub,v 1.727 2014/01/11 23:28:02 halex Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -618,13 +618,12 @@ __EOT
for _f in $_avail; do
[[ $_f = $resp ]] && _selected=$($_action $_f $_selected)
done
- if isin $_xbase $_selected && isin $_comp $_avail ; then
- if ! isin $_comp $_selected ; then
- _selected=$(addel $_comp $_selected)
- echo "The xbase set requires the comp set, so adding it back in."
- fi
- fi
done
+ if isin $_xbase $_selected && ! isin $_comp $_selected &&
+ isin $_comp $_avail; then
+ _selected=$(addel $_comp $_selected)
+ echo "The xbase set requires the comp set, so adding it back in."
+ fi
done
set +o noglob