[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 27 Sep 2006 20:34:26 -0000


albertel		Wed Sep 27 16:34:26 2006 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  - remove some log spew
  - reinstate the announcement of the synching of the metadata database was successful
  - update the call to update_metadata to new callind convention
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.212 loncom/publisher/lonpublisher.pm:1.213
--- loncom/publisher/lonpublisher.pm:1.212	Wed Sep 13 17:43:26 2006
+++ loncom/publisher/lonpublisher.pm	Wed Sep 27 16:34:26 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.212 2006/09/13 21:43:26 albertel Exp $
+# $Id: lonpublisher.pm,v 1.213 2006/09/27 20:34:26 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -846,7 +846,7 @@
 	$status=&LONCAPA::lonmetadata::delete_metadata($dbh,undef,
                                                        $metadata{'url'});
     } else {
-        $status = &LONCAPA::lonmetadata::update_metadata($dbh,undef,
+        $status = &LONCAPA::lonmetadata::update_metadata($dbh,undef,undef,
                                                          \%metadata);
     }
     if (defined($status) && $status ne '') {
@@ -856,7 +856,7 @@
         &Apache::lonnet::logthis($status);
         return ($error,undef);
     }
-    return (undef,$status);
+    return (undef,'success');
 }
 
 
@@ -1823,7 +1823,6 @@
 		    my $meta_cmtime = (stat($fn.'/'.$filename.'.meta'))[9];
 		    my $meta_rmtime = (stat($resdir.'/'.$filename.'.meta'))[9];
 		    if ( $meta_rmtime<$meta_cmtime ) {
-			&Apache::lonnet::logthis("meta change!");
 			$publishthis=1;
 		    }
 		} else {