diff options
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-x | pbuilder-checkparams | 18 |
1 files 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) |