[LON-CAPA-cvs] cvs: loncom / lond

raeburn raeburn at source.lon-capa.org
Fri Dec 22 13:50:55 EST 2023


raeburn		Fri Dec 22 18:50:55 2023 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Current version should be 1 not 2 for resources published only once (i.e.,
    those without (numbered) previous versions in Resource Space.  
  
  
Index: loncom/lond
diff -u loncom/lond:1.579 loncom/lond:1.580
--- loncom/lond:1.579	Wed Jun  7 14:21:52 2023
+++ loncom/lond	Fri Dec 22 18:50:55 2023
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.579 2023/06/07 14:21:52 raeburn Exp $
+# $Id: lond,v 1.580 2023/12/22 18:50:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -65,7 +65,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.579 $'; #' stupid emacs
+my $VERSION='$Revision: 1.580 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -8880,6 +8880,9 @@
     if (-e $ulsdir) {
 	if(-d $ulsdir) {
 	    if (opendir(LSDIR,$ulsdir)) {
+                if (-e $fname) {
+                    $version=0;
+                }
 		my $ulsfn;
 		while ($ulsfn=readdir(LSDIR)) {
 # see if this is a regular file (ignore links produced earlier)




More information about the LON-CAPA-cvs mailing list