diff options
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -3131,6 +3131,13 @@ defvalopt '--quilt', '', $quilt_modes_re, \$quilt_mode; defvalopt '', '-c', '.*=.*', sub { push @git, '-c', @_; }; +defvalopt '', '-C', '.+', sub { + ($changesfile) = (@_); + if ($changesfile =~ s#^(.*)/##) { + $buildproductsdir = $1; + } +}; + defvalopt '--initiator-tempdir','','.*', sub { ($initiator_tempdir) = (@_); $initiator_tempdir =~ m#^/# or @@ -3238,12 +3245,6 @@ sub parseopts () { push @ropts, $&; push @changesopts, $_; $_ = ''; - } elsif (s/^-C(.+)//s) { - push @ropts, $&; - $changesfile = $1; - if ($changesfile =~ s#^(.*)/##) { - $buildproductsdir = $1; - } } elsif (s/^-k(.+)//s) { $keyid=$1; } elsif (m/^-[dCk]$/) { |