def finalizenames(self, client, finalimage):
client.api.tag(finalimage, *self.targetname.split('<STR_LIT::>'))<EOL>cprint('<STR_LIT>' % self.targetname,<EOL>'<STR_LIT>')<EOL>if not self.keepbuildtags:<EOL><INDENT>print('<STR_LIT>', end='<STR_LIT>')<EOL>for step in self.steps:<EOL><INDENT>client.api.remove_image(step.buildname, force=True)<EOL>print(step.buildname, end='<STR_LIT:U+002C>')<EOL><DEDENT>print()<EOL><DEDENT>
Tag the built image with its final name and untag intermediate containers