Apache Lucene open-source search software
LUCENE-8818: Fix smokeTestRelease.py encoding bug
Jan Høydahl8d6fd7298fe4
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.pyindex 6f3d0fc9893..617ef4b40d7 100644--- a/dev-tools/scripts/smokeTestRelease.py+++ b/dev-tools/scripts/smokeTestRelease.py@@ -375,7 +375,7 @@ def checkSigs(project, urlString, version, tmpDir, isSigned, keysFile):run('gpg --homedir %s --verify %s %s' % (gpgHomeDir, sigFile, artifactFile),logFile)# Forward any GPG warnings, except the expected one (since it's a clean world)- f = open(logFile, encoding='UTF-8')+ f = open(logFile)for line in f.readlines():if line.lower().find('warning') != -1 \and line.find('WARNING: This key is not certified with a trusted signature') == -1:@@ -389,7 +389,7 @@ def checkSigs(project, urlString, version, tmpDir, isSigned, keysFile):logFile = '%s/%s.%s.gpg.trust.log' % (tmpDir, project, artifact)run('gpg --verify %s %s' % (sigFile, artifactFile), logFile)# Forward any GPG warnings:- f = open(logFile, encoding='UTF-8')+ f = open(logFile)for line in f.readlines():if line.lower().find('warning') != -1:print(' GPG: %s' % line.strip())@@ -1120,7 +1120,7 @@ def verifyMavenSigs(baseURL, tmpDir, artifacts, keysFile):run('gpg --homedir %s --verify %s %s' % (gpgHomeDir, sigFile, artifactFile),logFile)# Forward any GPG warnings, except the expected one (since it's a clean world)- f = open(logFile, encoding='UTF-8')+ f = open(logFile)for line in f.readlines():if line.lower().find('warning') != -1 \and line.find('WARNING: This key is not certified with a trusted signature') == -1 \@@ -1134,7 +1134,7 @@ def verifyMavenSigs(baseURL, tmpDir, artifacts, keysFile):logFile = '%s/%s.%s.gpg.trust.log' % (tmpDir, project, artifact)run('gpg --verify %s %s' % (sigFile, artifactFile), logFile)# Forward any GPG warnings:- f = open(logFile, encoding='UTF-8')+ f = open(logFile)for line in f.readlines():if line.lower().find('warning') != -1 \and line.find('WARNING: This key is not certified with a trusted signature') == -1 \diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 1ba4d5a734e..cb27213764e 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -75,6 +75,8 @@ Improvementsmultiple threads, IndexSearcher now groups small segments together, up to250k docs per slice. (Atri Sharma via Adrien Grand)+* LUCENE-8818: Fix smokeTestRelease.py encoding bug (janhoy)+======================= Lucene 8.1.1 =======================(No Changes)