[LON-CAPA-cvs] cvs: loncom /interface lonmeta.pm

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 09 May 2005 01:51:44 -0000


banghart		Sun May  8 21:51:44 2005 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  	Allow to continue when no meta file exists.
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.96 loncom/interface/lonmeta.pm:1.97
--- loncom/interface/lonmeta.pm:1.96	Thu Apr  7 02:56:23 2005
+++ loncom/interface/lonmeta.pm	Sun May  8 21:51:44 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.96 2005/04/07 06:56:23 albertel Exp $
+# $Id: lonmeta.pm,v 1.97 2005/05/09 01:51:44 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -921,8 +921,7 @@
         %Apache::lonpublisher::metadatakeys=();
         my $result=&Apache::lonnet::getfile($fn);
         if ($result == -1){
-            $r->print('Unable to get '.$fn);
-            return ;
+            $r->print('Creating new '.$fn);
         } else {
             &Apache::lonpublisher::metaeval($result);
         }
@@ -1025,3 +1024,5 @@
 
 1;
 __END__
+
+     
\ No newline at end of file