provision: Include scripts/lib/setup-* and scripts/lib/build-* for sha1 sum check.

This commit is contained in:
rht
2018-12-17 19:20:02 +00:00
committed by Tim Abbott
parent 0510424e1c
commit 84c968ab36

View File

@@ -309,8 +309,14 @@ def main(options):
for apt_depedency in SYSTEM_DEPENDENCIES:
sha_sum.update(apt_depedency.encode('utf8'))
# hash the content of setup-apt-repo
if vendor in ["Ubuntu", "Debian"]:
sha_sum.update(open('scripts/lib/setup-apt-repo', 'rb').read())
else:
# hash the content of setup-yum-repo and build-*
sha_sum.update(open('scripts/lib/setup-yum-repo', 'rb').read())
build_paths = glob.glob("scripts/lib/build-")
for bp in build_paths:
sha_sum.update(open(bp, 'rb').read())
new_apt_dependencies_hash = sha_sum.hexdigest()
last_apt_dependencies_hash = None