[devscripts] 01/01: debchange: fixup regex

Mattia Rizzolo mattia at debian.org
Sun Nov 12 11:51:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository devscripts.

commit c59d7206f03dce31101f027e70bcf15fe9a8d53f
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Nov 12 12:50:02 2017 +0100

    debchange: fixup regex
    
    Thanks: adsb for following along and noticing the error
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 scripts/debchange.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/debchange.pl b/scripts/debchange.pl
index d4ac8da..ad5aaff 100755
--- a/scripts/debchange.pl
+++ b/scripts/debchange.pl
@@ -1179,7 +1179,7 @@ if (($opt_i || $opt_n || $opt_bn || $opt_qa || $opt_R || $opt_s || $opt_lts || $
 		# based on the version of the previous upload
 		if ($opt_stable || $opt_bpo || $opt_s || $opt_lts) {
 		    my $previous_dist = $start;
-		    $previous_dist =~ s/^.*[+~](?:deb|bpo)(\d+)(?:u\+)\d+$/$1/;
+		    $previous_dist =~ s/^.*[+~](?:deb|bpo)(\d+)(?:u\+)$/$1/;
 		    if (defined $previous_dist and defined $dists{$previous_dist}) {
                 if ($opt_s || $opt_lts) {
                     $guessed_dist = $dists{$previous_dist} . '-security';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list