From 033c61d043ece92a7c92f7d6d17d58410f4822b7 Mon Sep 17 00:00:00 2001 From: freesource Date: Wed, 13 Feb 2002 19:42:53 +0000 Subject: [PATCH] Removed unecessary warning which warned that left-hand side replacements couldn't be a directory if it happened to find that directory on the hostfs. Directories can be replacements. --- BootRoot/Yard.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 5d14adf..5340cc8 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -408,8 +408,11 @@ sub read_contents_file { } else { must_be_abs($file); - (-d $file) and cf_warn($contents_file, $line, - "left-hand side can't be directory"); + # This doesn't make too much sense, since directories can + # be replacements, and this is just checking the hostfs + # --freesource +## (-d $file) and cf_warn($contents_file, $line, +## "left-hand side can't be directory"); # my($abs_replacement) = find_file_in_path($replacement,$main::global_yard); my($abs_replacement) = find_file_in_path($replacement);