Commit 4cc12f55 authored by Jérome Perrin's avatar Jérome Perrin

check_software: update glob to new buildout-shared signature files

Since slapos.recipe.cmmi version 0.18, the signature files no longer
match the glob pattern that was used here, so check that shared
parts do not reference software parts was not effective anymore.
parent aaa742d6
...@@ -220,8 +220,13 @@ def checkSoftware(slap, software_url): ...@@ -220,8 +220,13 @@ def checkSoftware(slap, software_url):
)) ))
# check this software is not referenced in any shared parts. # check this software is not referenced in any shared parts.
for signature_file in glob.glob(os.path.join(slap.shared_directory, '*', '*', for signature_file in glob.glob(
'.*slapos.*.signature')): os.path.join(
slap.shared_directory,
'*',
'*',
'.buildout-shared.json',
)):
with open(signature_file) as f: with open(signature_file) as f:
signature_content = f.read() signature_content = f.read()
if software_hash in signature_content: if software_hash in signature_content:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment