projects
/
platform
/
upstream
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
188da80
)
Diff can't handle empty files
author
Martin Koegler
<mkoegler@auto.tuwien.ac.at>
Sun, 17 Jun 2012 15:25:42 +0000
(17:25 +0200)
committer
Stephan Kulow
<coolo@suse.de>
Mon, 24 Sep 2012 15:37:45 +0000
(17:37 +0200)
debtransform
patch
|
blob
|
history
diff --git
a/debtransform
b/debtransform
index
031b744
..
a314d54
100755
(executable)
--- a/
debtransform
+++ b/
debtransform
@@
-100,9
+100,9
@@
sub dofile {
my @file = <F>;
close F;
chomp(@file);
+ return unless @file;
print DIFF "--- $tardir.orig/$dfile\n";
print DIFF "+++ $tardir/$dfile\n";
- return unless @file;
print DIFF "\@\@ -0,0 +1,".scalar(@file)." \@\@\n";
print DIFF "+$_\n" for @file;
}