From 08b7893fc9ce813587108a7172f9143e87c07c9a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Jul 2019 19:39:38 +0100 Subject: [PATCH] Dgit.pm: Move $suite_re from dgit Signed-off-by: Ian Jackson --- Debian/Dgit.pm | 3 ++- dgit | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 887fbb59..348f608c 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -64,7 +64,7 @@ BEGIN { read_tree_debian read_tree_upstream make_commit hash_commit hash_commit_text reflog_cache_insert reflog_cache_lookup - $package_re $component_re $deliberately_re + $package_re $component_re $suite_re $deliberately_re $distro_re $versiontag_re $series_filename_re $orig_f_comp_re $orig_f_sig_re $orig_f_tail_re $extra_orig_namepart_re @@ -96,6 +96,7 @@ our @EXPORT_OK; our $package_re = '[0-9a-z][-+.0-9a-z]*'; our $component_re = '[0-9a-zA-Z][-+.0-9a-zA-Z]*'; +our $suite_re = '[-+.0-9a-z]+'; our $deliberately_re = "(?:TEST-)?$package_re"; our $distro_re = $component_re; our $versiontag_re = qr{[-+.\%_0-9a-zA-Z/]+}; diff --git a/dgit b/dgit index 491cb234..6febb07a 100755 --- a/dgit +++ b/dgit @@ -104,7 +104,6 @@ our %forceopts = map { $_=>0 } our %format_ok = map { $_=>1 } ("1.0","3.0 (native)","3.0 (quilt)"); -our $suite_re = '[-+.0-9a-z]+'; our $cleanmode_re = qr{(?: dpkg-source (?: -d )? (?: ,no-check | ,all-check )? | (?: git | git-ff ) (?: ,always )? | check (?: ,ignores )? -- 2.30.2