summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2015-05-15 02:37:43 (GMT)
committerCyril Brulebois <kibi@debian.org>2015-05-15 02:39:10 (GMT)
commitf961ecc638751cdef8a32c02ec2ccc4308e104cc (patch)
treef5253937b53bf3529b3a5af07f06a114eabe1ccb /debootstrap
parentbe99f7b4c1fc622f9c4d4f93d96aec649ff7c543 (diff)
downloaddebootstrap-f961ecc638751cdef8a32c02ec2ccc4308e104cc.zip
debootstrap-f961ecc638751cdef8a32c02ec2ccc4308e104cc.tar.gz
debootstrap-f961ecc638751cdef8a32c02ec2ccc4308e104cc.tar.bz2
Detect incompatible options and abort accordingly.
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap6
1 files changed, 6 insertions, 0 deletions
diff --git a/debootstrap b/debootstrap
index e987112..2bbd1ac 100755
--- a/debootstrap
+++ b/debootstrap
@@ -365,6 +365,12 @@ fi
###########################################################################
+if [ -n "$DISABLE_KEYRING" -a -n "$FORCE_KEYRING" ]; then
+ error 1 BADARG "Both --no-check-gpg and --force-check-gpg specified, please pick one (at most)"
+fi
+
+###########################################################################
+
if [ "$SECOND_STAGE_ONLY" = "true" ]; then
SUITE=$(cat $DEBOOTSTRAP_DIR/suite)
ARCH=$(cat $DEBOOTSTRAP_DIR/arch)