diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-14 12:14:36 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-14 18:34:57 +0100 |
commit | 268c7b9f82a0333f0de7ec09f3261e84deb8fb7b (patch) | |
tree | 54e514da726fa283ac1e6dd7920dd2cd8ba1d77e /dgit | |
parent | f122563eccd23a29a21bfa3c6beadc497f7fab86 (diff) |
Break out $cleanmode_re (nfc)
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |