Fix typo, add some logging and fix command comparison

This commit is contained in:
Joseph Schorr 2015-02-11 16:02:36 -05:00
parent f8a917ec26
commit e1a15464a1

View file

@ -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):