Skip to content

Commit de2b983

Browse files
authored
Merge pull request #146 from natefoo/shed-tools-poll-fix
When polling for repo install status, ensure the correct revision is being checked
2 parents 635f532 + 502bf6d commit de2b983

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/ephemeris/shed_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,9 @@ def wait_for_install(self, repository, log=None, timeout=3600):
426426
try:
427427
installed_repo_list = self.tool_shed_client.get_repositories()
428428
for installing_repo in installed_repo_list:
429-
if (repository['name'] == installing_repo['name']) and (
430-
installing_repo['owner'] == repository['owner']):
429+
if (installing_repo['name'] == repository['name']) and (
430+
installing_repo['owner'] == repository['owner']) and (
431+
installing_repo['changeset_revision'] == repository['changeset_revision']):
431432
if installing_repo['status'] == 'Installed':
432433
return True
433434
elif installing_repo['status'] == 'Error':

0 commit comments

Comments
 (0)