From: Ian Jackson Date: Mon, 27 Oct 2014 17:43:58 +0000 (+0000) Subject: Make mk_orig_file have capability to be selective on source package and version X-Git-Tag: debian/0.30~317 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=fbb2767a1a26503fd930aed3240209dd0ea3a541;ds=inline Make mk_orig_file have capability to be selective on source package and version --- diff --git a/dgit b/dgit index b13b5ed5..e74445ba 100755 --- a/dgit +++ b/dgit @@ -1028,9 +1028,12 @@ sub dsc_files () { map { $_->{Filename} } dsc_files_info(); } -sub is_orig_file ($) { - local ($_) = @_; - m/\.orig(?:-\w+)?\.tar\.\w+$/; +sub is_orig_file ($;$) { + local ($_) = $_[0]; + my $base = $_[1]; + m/\.orig(?:-\w+)?\.tar\.\w+$/ or return 0; + defined $base or return 1; + return $` eq $base; } sub make_commit ($) {