[LON-CAPA-cvs] cvs: loncom /metadata_database searchcat.pl

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 05 Feb 2006 19:46:31 -0000


albertel		Sun Feb  5 14:46:31 2006 EDT

  Modified files:              
    /loncom/metadata_database	searchcat.pl 
  Log:
  - BUG#4645, since no_chdir is now being used need to specify the full path
  
  
  
Index: loncom/metadata_database/searchcat.pl
diff -u loncom/metadata_database/searchcat.pl:1.66 loncom/metadata_database/searchcat.pl:1.67
--- loncom/metadata_database/searchcat.pl:1.66	Fri Jan 27 10:53:49 2006
+++ loncom/metadata_database/searchcat.pl	Sun Feb  5 14:46:31 2006
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # searchcat.pl "Search Catalog" batch script
 #
-# $Id: searchcat.pl,v 1.66 2006/01/27 15:53:49 albertel Exp $
+# $Id: searchcat.pl,v 1.67 2006/02/05 19:46:31 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -265,7 +265,7 @@
     foreach my $file (@PossibleFiles) {
         if ( ($file =~ /\.meta$/ &&            # Ends in meta
               $file !~ /\.\d+\.[^\.]+\.meta$/  # is not for a prior version
-             ) || (-d $file )) { # directories are okay
+             ) || (-d $File::Find::dir."/".$file )) { # directories are okay
                  # but we do not want /. or /..
             push(@ChosenFiles,$file);
         }