ooo-build r14088 - in trunk: . bin
- From: pmladek svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r14088 - in trunk: . bin
- Date: Thu, 25 Sep 2008 17:46:09 +0000 (UTC)
Author: pmladek
Date: Thu Sep 25 17:46:09 2008
New Revision: 14088
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14088&view=rev
Log:
2008-09-25 Petr Mladek <pmladek suse cz>
* bin/sloppypatch.pl: apply also the hunks that remove whole files
Modified:
trunk/ChangeLog
trunk/bin/sloppypatch.pl
Modified: trunk/bin/sloppypatch.pl
==============================================================================
--- trunk/bin/sloppypatch.pl (original)
+++ trunk/bin/sloppypatch.pl Thu Sep 25 17:46:09 2008
@@ -27,22 +27,38 @@
my $eliding = 1;
my $minusline = '';
+my $minusline_dir = '';
+my $minusline_subpath = '';
my $sections = 0;
while (<STDIN>) {
my $line = $_;
- if ( $line =~ m/^--- /) {
+ if ( $line =~ m/^--- [ \t]*\.?\/?([^\/]+)([^ \t]+)/ ) {
+ $minusline_topdir="$1";
+ $minusline_subpath="$2";
$minusline .= $line;
next;
}
if ( $line =~ m/^\+\+\+ [ \t]*\.?\/?([^\/]+)([^ \t]+)/ ) {
- $eliding = ! -d "$applydir/$1";
+ my $topdir="$1";
+ my $subpath="$2";
+
+ # need to use the --- path when the file should get removed
+ chomp $subpath;
+ if ("$topdir$subpath" eq "dev/null") {
+ $topdir="$minusline_topdir";
+ $subpath="$minusline_subpath";
+ }
+
+ $eliding = ! -d "$applydir/$topdir";
if (!$eliding) {
$sections++;
- print STDERR "+ apply fragment for $1$2\n";
+ print STDERR "+ apply fragment for $topdir$subpath\n";
}
$line = $minusline . $line;
$minusline = '';
+ $minusline_topdir='';
+ $minusline_subpath='';
}
if (!$eliding) {
print $fh $line;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]