[LON-CAPA-cvs] cvs: doc /loncapafiles updatequery.piml

raeburn raeburn at source.lon-capa.org
Tue Nov 10 15:10:27 EST 2026


raeburn		Tue Nov 10 20:10:27 2026 EDT

  Modified files:              
    /doc/loncapafiles	updatequery.piml 
  Log:
  - Support installation of nodejs on CentOS-stream if needed.
  - Add prompts for user to hit any key after display of information about
    node.js and chromium browser dependencies when "Accessibility Checking 
    Available" set to 'Y', so text does not scroll off screen before it can
    be read.
  - Fix two typos.
  
  
Index: doc/loncapafiles/updatequery.piml
diff -u doc/loncapafiles/updatequery.piml:1.109 doc/loncapafiles/updatequery.piml:1.110
--- doc/loncapafiles/updatequery.piml:1.109	Mon Sep 14 18:04:02 2026
+++ doc/loncapafiles/updatequery.piml	Tue Nov 10 20:10:26 2026
@@ -1,6 +1,6 @@
 <!-- updatequery.piml -->
 
-<!-- $Id: updatequery.piml,v 1.109 2026/09/14 18:04:02 raeburn Exp $ -->
+<!-- $Id: updatequery.piml,v 1.110 2026/11/10 20:10:26 raeburn Exp $ -->
 
 <!--
 
@@ -1026,7 +1026,7 @@
 }
 
 sub axe_info {
-   print(<<END);
+    print(<<END);
 
 ****** Information about Accessibility Checking using Axe *****
 
@@ -1037,7 +1037,7 @@
 already present.  
 
 The packages include a modern version of node.js,
-and a headless browser (which will be chromium unless 
+and a headless browser (which will be chromium 
 unless your Linux distro/version requires use of 
 either google chrome or firefox).
 
@@ -1055,6 +1055,18 @@
 Space.
 
 END
+
+    ReadMode 'raw';
+    print(<<END);
+Hit any key to proceed
+END
+    while (1) {
+        my $key = ReadKey(-1);
+        if (defined($key)) {
+            last;
+        }
+    }
+    ReadMode 'normal';
 }
 
 sub axe_action {
@@ -1073,6 +1085,18 @@
 may take an additional minute or two.
 
 END
+
+    ReadMode 'raw';
+    print(<<END);
+Hit any key to proceed
+END
+    while (1) {
+        my $key = ReadKey(-1);
+        if (defined($key)) {
+            last;
+        }
+    }
+    ReadMode 'normal';
 }
 
   print(<<END);
@@ -2700,7 +2724,7 @@
                         $command = 'apt-get -y install nodejs';
                     } elsif (($dist =~ /^rhes|oracle|centos|scientific$/) && ($version <= 7)) {
                         $command = 'yum install nodejs -y';
-                    } elsif ($dist =~ /^fedora|rhes|oracle|alma|rocky|centos|centos-stream$/) {
+                    } elsif ($dist =~ /^fedora|rhes|oracle|alma|rocky|centos|centos\-stream$/) {
                         $command = 'dnf --refresh install nodejs -y';
                     }
                     if ($command ne '') {
@@ -2724,7 +2748,7 @@
                         print "Could not install $packagelist because a loncapa-nodejs.repo file could not be created.\n";
                     } elsif ($dist =~ /^ubuntu|debian$/) {
                         print "Could not install $packagelist using nodesource because a nodesource.sources file could not be created.\n";
-                    } elsif ($dist =~ /^fedora|rhes|oracle|alma|rocky|centos|centos-stream$/) {
+                    } elsif ($dist =~ /^fedora|rhes|oracle|alma|rocky|centos|centos\-stream$/) {
                         print "Could not install $packagelist using nodesource because a nodesource.repo file could not be created.\n";
                     }
                 }
@@ -2780,7 +2804,7 @@
                         print "Could not install $packagelist because required repo could not be added.\n";
                     }
                 }
-            } elsif ($dist =~ /^(fedora|alma|rocky|centos|oracle|rhes|scientific)$/) {
+            } elsif ($dist =~ /^(fedora|alma|rocky|centos|oracle|rhes|scientific|centos\-stream)$/) {
                 if ($dist ne 'fedora') {
                     if (($version < 10) && ($version > 7)) {
                         my $module_enabled;
@@ -2901,7 +2925,7 @@
                         close($pipe);
                     }
                 }
-            } elsif ($dist =~ /^(alma|rocky|centos|oracle|rhes|scientific|centos-stream)$/) {
+            } elsif ($dist =~ /^(alma|rocky|centos|oracle|rhes|scientific|centos\-stream)$/) {
                 my $command;
                 if ($version > 7) {
                     $command = 'dnf';
@@ -2974,7 +2998,7 @@
                         }
                     }
                 } else {
-                    print "Could not install web browser because repo could nor be added.\n";
+                    print "Could not install web browser because repo could not be added.\n";
                 }
             }
         }




More information about the LON-CAPA-cvs mailing list