X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=d7d27f834c4c9d349ceb2e78553c2852a239464b;hp=9c4d3d6e66297c148678945c57dd4757fc34f733;hb=268c7b9f82a0333f0de7ec09f3261e84deb8fb7b;hpb=f122563eccd23a29a21bfa3c6beadc497f7fab86 diff --git a/dgit b/dgit index 9c4d3d6e..d7d27f83 100755 --- a/dgit +++ b/dgit @@ -67,6 +67,7 @@ our $initiator_tempdir; our %format_ok = map { $_=>1 } ("1.0","3.0 (native)","3.0 (quilt)"); our $suite_re = '[-+.0-9a-z]+'; +our $cleanmode_re = 'dpkg-source(?:-d)?|git|git-ff|check|none'; our (@git) = qw(git); our (@dget) = qw(dget); @@ -3164,7 +3165,7 @@ sub parseopts () { } elsif (m/^--build-products-dir=(.*)/s) { push @ropts, $_; $buildproductsdir = $1; - } elsif (m/^--clean=(dpkg-source(?:-d)?|git|git-ff|check|none)$/s) { + } elsif (m/^--clean=($cleanmode_re)$/os) { push @ropts, $_; $cleanmode = $1; } elsif (m/^--clean=(.*)$/s) {