summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-14 14:10:15 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-14 18:34:59 +0100
commit31995d0c8b6212275829a7e432821d5d94633ef5 (patch)
tree3a4103d2692dba0010ecae07a6436ff7e507d3fe /dgit
parentbf5e40c8a56c5d7c3f78b50d354bd6568190375a (diff)
Convert to defvalopt: --existing-package
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 1 insertions, 3 deletions
diff --git a/dgit b/dgit
index 8963344..4f63f03 100755
--- a/dgit
+++ b/dgit
@@ -3125,6 +3125,7 @@ defvalopt '--since-version', '-v', '[^_]+|_', sub {
($changes_since_version) = @_;
};
defvalopt '--distro', '-d', '.+', sub { ($idistro) = (@_); };
+defvalopt '--existing-package', '', '.*', sub { ($existing_package) = (@_); };
sub parseopts () {
my $om;
@@ -3182,9 +3183,6 @@ sub parseopts () {
($om = $opts_opt_map{$1})) {
push @ropts, $_;
push @$om, $2;
- } elsif (m/^--existing-package=(.*)/s) {
- push @ropts, $_;
- $existing_package = $1;
} elsif (m/^--initiator-tempdir=(.*)/s) {
$initiator_tempdir = $1;
$initiator_tempdir =~ m#^/# or