--- loncom/publisher/lonpublisher.pm 2008/03/18 23:31:31 1.232 +++ loncom/publisher/lonpublisher.pm 2008/05/12 20:59:22 1.233 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.232 2008/03/18 23:31:31 raeburn Exp $ +# $Id: lonpublisher.pm,v 1.233 2008/05/12 20:59:22 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -143,6 +143,8 @@ my $cudom; my $registered_cleanup; my $modified_urls; +my $lock; + =pod =item B @@ -1744,6 +1746,7 @@ sub notify { print $logfile "\n============ Done ============\n"; $logfile->close(); } + if ($lock) { &Apache::lonnet::remove_lock($lock); } return OK; } @@ -1813,7 +1816,9 @@ sub publishdirectory { &checkbox('obsolete','make file(s) obsolete'). &checkbox('forceoverride','force directory level catalog information over existing'). '
'); + $lock=0; } else { + unless ($lock) { $lock=&Apache::lonnet::set_lock('Publishing '.$fn); } # actually publish things opendir(DIR,$fn); my @files=sort(readdir(DIR));