diff options
author | Michael Meeks <michael.meeks@novell.com> | 2004-03-16 16:44:55 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2004-03-16 16:44:55 +0000 |
commit | d12503234ca8fc804c9288490a408510062d3721 (patch) | |
tree | c0c64ce8bf415902dc837f90ab1f2955d54cc419 | |
parent | 7d98ba390ec6fb318e9d6acaef59de5f517fd94d (diff) |
Revert mess ...
-rwxr-xr-x | patches/apply.pl | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/patches/apply.pl b/patches/apply.pl index ffbe9e292..691d1787e 100755 --- a/patches/apply.pl +++ b/patches/apply.pl @@ -8,37 +8,20 @@ sub find_file($$) my $dir = shift; my $file = shift; - print "Find file '$dir' '$file'\n"; - if (!-f "$dir/$file") { - - print "File not initially in '$dir/$file'\n"; - my @search = split /:/, $options{'PATCHPATH'}; - print "Search is '@search'\n"; - for $stem (@search) { - print "Stem '$stem', dir: '$dir', file '$file'\n"; my $testdir = "$dir/$stem"; - print "testdir: '$testdir'\n"; if (-f "$testdir/$file") { - print "Hit file $testdir/$file\n"; $dir = $testdir; last; - } else { - print "File $testdir/$file does not exist\n"; - my @args = stat("$testdir/$file"); - print "Stat results: @args\n"; } } - } else { - print "File was initially in '$dir/$file'\n"; } -f "$dir/$file" || die "\n\n** Error ** - Can't find file $dir/$file\n\n\n"; - print "\n\nFound: '$dir/$file'\n\n\n"; return "$dir/$file"; } |