python 3.12 is pickier with backslashes
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 3 Jul 2024 06:16:44 +0000 (08:16 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 3 Jul 2024 06:16:44 +0000 (08:16 +0200)
lbuild-nightly.sh

index 9991abe..3f21c74 100755 (executable)
@@ -97,18 +97,23 @@ function guest_ipv4() {
 function summary () {
     from=$1; shift
     echo "******************** BEG SUMMARY"
-    python3 - $from <<EOF
-#!/usr/bin/env python3
+    python - $from <<EOF
 # read a full log and tries to extract the interesting stuff
 
 import sys, re
 m_show_line = re.compile(
-".* (BEG|END) (RPM|LXC).*|.*'boot'.*|\* .*| \* .*|.*is not installed.*|.*PROPFIND.*|.* (BEG|END).*:run_log.*|.* Within LXC (BEG|END) .*|.* MAIN (BEG|END).*")
-m_installing_any = re.compile('\r  (Installing:[^\]]*]) ')
-m_installing_err = re.compile('\r  (Installing:[^\]]*])(..+)')
-m_installing_end = re.compile('Installed:.*')
-m_installing_doc1 = re.compile("(.*)install-info: No such file or directory for /usr/share/info/\S+(.*)")
-m_installing_doc2 = re.compile("(.*)grep: /usr/share/info/dir: No such file or directory(.*)")
+r".* (BEG|END) (RPM|LXC).*|.*'boot'.*|\* .*| \* .*"
+"|.*is not installed.*"
+"|.*PROPFIND.*"
+"|.* (BEG|END).*:run_log.*"
+"|.* Within LXC (BEG|END) .*"
+"|.* MAIN (BEG|END).*"
+)
+m_installing_any = re.compile(r"\r  (Installing:[^\]]*]) ")
+m_installing_err = re.compile(r"\r  (Installing:[^\]]*])(..+)")
+m_installing_end = re.compile(r"Installed:.*")
+m_installing_doc1 = re.compile(r"(.*)install-info: No such file or directory for /usr/share/info/\S+(.*)")
+m_installing_doc2 = re.compile(r"(.*)grep: /usr/share/info/dir: No such file or directory(.*)")
 
 def summary (filename):