[LON-CAPA-cvs] cvs: loncom(GCI_3) / lond /publisher lonpublisher.pm

raeburn raeburn@source.lon-capa.org
Wed, 06 Jan 2010 04:19:20 -0000


raeburn		Wed Jan  6 04:19:20 2010 EDT

  Modified files:              (Branch: GCI_3)
    /loncom	lond 
    /loncom/publisher	lonpublisher.pm 
  Log:
  - Customization for GCI_3
    - Equivalent to fix for bug #6139 for .tmp files.
    - Remove local tn-preview files on re-publication.
     (preview files have .tn extension when generated for GCI Test Assembly).
  
  
Index: loncom/lond
diff -u loncom/lond:1.435 loncom/lond:1.435.2.1
--- loncom/lond:1.435	Sat Jan  2 23:56:06 2010
+++ loncom/lond	Wed Jan  6 04:19:08 2010
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.435 2010/01/02 23:56:06 raeburn Exp $
+# $Id: lond,v 1.435.2.1 2010/01/06 04:19:08 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.435 $'; #' stupid emacs
+my $VERSION='$Revision: 1.435.2.1 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -2091,6 +2091,8 @@
 	if (-e $fname) {
             # Delete preview file, if exists
             unlink("$fname.tmp");
+            # Delete GCI Test Assembly preview file, if exists
+            unlink("$fname.tn");
             # Get usage stats
 	    my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
 		$atime,$mtime,$ctime,$blksize,$blocks)=stat($fname);
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.265 loncom/publisher/lonpublisher.pm:1.265.2.1
--- loncom/publisher/lonpublisher.pm:1.265	Thu Dec  3 17:23:00 2009
+++ loncom/publisher/lonpublisher.pm	Wed Jan  6 04:19:20 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.265 2009/12/03 17:23:00 www Exp $
+# $Id: lonpublisher.pm,v 1.265.2.1 2010/01/06 04:19:20 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1729,6 +1729,8 @@
     
 # ---------------------------------------------- Delete local tmp-preview files
     unlink($copyfile.'.tmp');
+#  ---------------------------- Delete local GCI Test Assembly tn-preview files
+    unlink($copyfile.'.tn');
 # --------------------------------------------------------------- Copy Metadata
 
     $copyfile=$copyfile.'.meta';