summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2004-03-16 16:44:55 +0000
committerMichael Meeks <michael.meeks@novell.com>2004-03-16 16:44:55 +0000
commitd12503234ca8fc804c9288490a408510062d3721 (patch)
treec0c64ce8bf415902dc837f90ab1f2955d54cc419
parent7d98ba390ec6fb318e9d6acaef59de5f517fd94d (diff)
Revert mess ...
-rwxr-xr-xpatches/apply.pl17
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";
}