From 80fd45b30a52bba481f928bf912bdbe0acc19558 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 15 Nov 2015 12:15:41 +0000 Subject: checkparams: override "experimental" DISTRIBUTION only for the create and update target --- pbuilder-checkparams | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 54ed075..f711665 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -310,12 +310,18 @@ case "$LOGLEVEL" in esac # handle 'experimental' specially. -- required for raw pbuilder (create/update) only. -if [ "$DISTRIBUTION" = "experimental" ]; then - DISTRIBUTION="sid" - EXPERIMENTAL="true" -else - EXPERIMENTAL= -fi +case "$PBCURRENTCOMMANDLINEOPERATION" in + --update|update|--create|create) + if [ "$DISTRIBUTION" = "experimental" ]; then + DISTRIBUTION="sid" + EXPERIMENTAL="true" + else + EXPERIMENTAL="" + fi + ;; + *) EXPERIMENTAL="" ;; +esac + case "$PBCURRENTCOMMANDLINEOPERATION" in --login|login|--execute|execute|--pdebuild|pdebuild) -- cgit v1.2.3