mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
provision: Include scripts/lib/setup-* and scripts/lib/build-* for sha1 sum check.
This commit is contained in:
@@ -309,8 +309,14 @@ def main(options):
|
|||||||
|
|
||||||
for apt_depedency in SYSTEM_DEPENDENCIES:
|
for apt_depedency in SYSTEM_DEPENDENCIES:
|
||||||
sha_sum.update(apt_depedency.encode('utf8'))
|
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())
|
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()
|
new_apt_dependencies_hash = sha_sum.hexdigest()
|
||||||
last_apt_dependencies_hash = None
|
last_apt_dependencies_hash = None
|
||||||
|
|||||||
Reference in New Issue
Block a user