chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8293f64
)
Make mk_orig_file have capability to be selective on source package and version
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 27 Oct 2014 17:43:58 +0000
(17:43 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 5 Nov 2014 18:02:50 +0000
(18:02 +0000)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index b13b5ed566c74f36d24a96298f59eb5e0ea007aa..e74445ba23ea07e545e8fc1336a443af698ddf69 100755
(executable)
--- 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 ($) {