From 268c7b9f82a0333f0de7ec09f3261e84deb8fb7b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 14 Aug 2015 12:14:36 +0100 Subject: [PATCH] Break out $cleanmode_re (nfc) --- dgit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2