Fix typo, add some logging and fix command comparison
This commit is contained in:
parent
f8a917ec26
commit
e1a15464a1
1 changed files with 5 additions and 2 deletions
|
@ -108,14 +108,17 @@ class BuildJob(object):
|
|||
return False
|
||||
|
||||
full_command = '["/bin/sh", "-c", "%s"]' % cache_commands[step]
|
||||
return image.storage.comment == full_command
|
||||
logger.debug('Checking step #%s: %s, %s == %s', step, image.id,
|
||||
image.storage.command, full_command)
|
||||
|
||||
return image.storage.command == full_command
|
||||
|
||||
path = tree.find_longest_path(base_image.id, checker)
|
||||
if not path:
|
||||
return None
|
||||
|
||||
# Find any tag associated with the last image in the path.
|
||||
return tree.tag_containing_images(path[-1])
|
||||
return tree.tag_containing_image(path[-1])
|
||||
|
||||
|
||||
def _determine_cached_tag_by_tag(self):
|
||||
|
|
Reference in a new issue