mirror of https://github.com/apache/lucene.git
parent
af2aea5eb2
commit
064c05f785
|
@ -264,13 +264,15 @@ def checkSigs(urlString, version, tmpDir, isSigned, keysFile):
|
||||||
if os.path.exists(gpgHomeDir):
|
if os.path.exists(gpgHomeDir):
|
||||||
shutil.rmtree(gpgHomeDir)
|
shutil.rmtree(gpgHomeDir)
|
||||||
os.makedirs(gpgHomeDir, 0o700)
|
os.makedirs(gpgHomeDir, 0o700)
|
||||||
run('gpg --homedir %s --import %s' % (gpgHomeDir, keysFile),
|
gpgLogFile = '%s/lucene.gpg.import.log' % tmpDir
|
||||||
'%s/lucene.gpg.import.log' % tmpDir)
|
run('gpg --homedir %s --import %s' % (gpgHomeDir, keysFile), gpgLogFile)
|
||||||
|
|
||||||
if mavenURL is None:
|
if mavenURL is None:
|
||||||
|
stopGpgAgent(gpgHomeDir, logFile)
|
||||||
raise RuntimeError('lucene is missing maven')
|
raise RuntimeError('lucene is missing maven')
|
||||||
|
|
||||||
if changesURL is None:
|
if changesURL is None:
|
||||||
|
stopGpgAgent(gpgHomeDir, logFile)
|
||||||
raise RuntimeError('lucene is missing changes-%s' % version)
|
raise RuntimeError('lucene is missing changes-%s' % version)
|
||||||
testChanges(version, changesURL)
|
testChanges(version, changesURL)
|
||||||
|
|
||||||
|
@ -308,6 +310,11 @@ def checkSigs(urlString, version, tmpDir, isSigned, keysFile):
|
||||||
if line.lower().find('warning') != -1:
|
if line.lower().find('warning') != -1:
|
||||||
print(' GPG: %s' % line.strip())
|
print(' GPG: %s' % line.strip())
|
||||||
|
|
||||||
|
# Make sure to shutdown the GPG agent at the end
|
||||||
|
stopGpgAgent(gpgHomeDir, logFile)
|
||||||
|
|
||||||
|
def stopGpgAgent(gpgHomeDir, logFile):
|
||||||
|
run('gpgconf --homedir %s --kill gpg-agent' % (gpgHomeDir), logFile)
|
||||||
|
|
||||||
def testChanges(version, changesURLString):
|
def testChanges(version, changesURLString):
|
||||||
print(' check changes HTML...')
|
print(' check changes HTML...')
|
||||||
|
@ -857,6 +864,8 @@ def verifyMavenSigs(tmpDir, artifacts, keysFile):
|
||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
# Make sure to shutdown the GPG agent at the end
|
||||||
|
stopGpgAgent(gpgHomeDir, logFile)
|
||||||
|
|
||||||
def print_warnings_in_file(file):
|
def print_warnings_in_file(file):
|
||||||
with open(file) as f:
|
with open(file) as f:
|
||||||
|
|
Loading…
Reference in New Issue