[entropy.client] do not execute branch migration script if it doesn't exist

This commit is contained in:
Fabio Erculiani
2009-10-01 18:11:02 +02:00
parent 8627f83c54
commit 1572d9256f
@@ -866,6 +866,14 @@ class RepositoryMixin:
os.path.isfile(branch_upg_script):
branch_upg_md5sum = self.entropyTools.md5sum(branch_upg_script)
if branch_upg_md5sum == '0':
# script not found, skip completely
const_debug_write(__name__,
"run_repository_post_branch_upgrade_hooks: %s: %s" % (
repoid, "branch upgrade script not avail",)
)
continue
const_debug_write(__name__,
"run_repository_post_branch_upgrade_hooks: script md5: %s" % (
branch_upg_md5sum,)