diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-07-07 07:14:35 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-07 11:18:18 +0100 |
commit | f243150f78a1a9556ac47c96208087410091349e (patch) | |
tree | ec089e67ebf72b32834ee79973f1a28db979c2ef /git-debpush | |
parent | 82a5c66c1525e7d337f9ff6d2fb292895e8b9a36 (diff) |
git-debpush: Don't pretend to support --baredebian+tarball
Instead of just deleting the option from the argument parser, accept
it, but print a message explicitly stating that the *quilt mode* is
not supported by this workflow (i.e. it's not just git-debpush passing
the quilt mode on to tag2upload that we don't support).
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'git-debpush')
-rwxr-xr-x | git-debpush | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git-debpush b/git-debpush index ae5f20f..63057ed 100755 --- a/git-debpush +++ b/git-debpush @@ -95,7 +95,8 @@ while true; do '--baredebian'|'--baredebian+git') quilt_mode=baredebian; shift; continue ;; '--baredebian+tarball') - quilt_mode=baredebian+tarball; shift; continue ;; + fail "--baredebian+tarball quilt mode not supported" + ;; '--') shift; break ;; *) badusage "unknown option $1" ;; @@ -107,8 +108,9 @@ if [ $# != 0 ]; then fi case "$quilt_mode" in - linear|auto|smash|nofix|gbp|dpm|unapplied|baredebian|baredebian+tarball|'') ;; + linear|auto|smash|nofix|gbp|dpm|unapplied|baredebian|'') ;; baredebian+git) quilt_mode="baredebian" ;; + baredebian+tarball) fail "--baredebian+tarball quilt mode not supported" ;; *) badusage "invalid quilt mode: $quilt_mode" ;; esac |