[ooo-build-commit] .: bin/sloppypatch.pl
Petr Mladek
pmladek at kemper.freedesktop.org
Thu Aug 5 02:55:31 PDT 2010
bin/sloppypatch.pl | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 79a7cd353dbd262ec2399a6183bfcc75eef23094
Author: Petr Mladek <pmladek at walk.suse.cz>
Date: Thu Aug 5 11:49:31 2010 +0200
fix sloppypatch.pl to process diffs with comments
* bin/sloppypatch.pl: ignore commented lines when processings diffs
diff --git a/bin/sloppypatch.pl b/bin/sloppypatch.pl
index 3c7c514..06e4fc4 100755
--- a/bin/sloppypatch.pl
+++ b/bin/sloppypatch.pl
@@ -60,6 +60,9 @@ my $line_matched = 0;
while (<STDIN>) {
my $line = $_;
+ # ignore comments
+ next if $line =~ m/^\#/;
+
# ignore the git headers
# especially "index " line" drives the patch tool mad when:
# + it is included but the related --- and +++ lines are not used in the end
More information about the ooo-build-commit
mailing list