fix archive_root property to not return None

This commit is contained in:
Ryan Pessa 2016-05-03 15:38:59 -05:00
parent 34a4b85b47
commit 5d91cb7a57

View file

@ -546,7 +546,7 @@ class Recipe(object):
def archive_root(self):
key = "{}.archive_root".format(self.name)
value = self.ctx.state.get(key)
if not key:
if not value:
value = self.get_archive_rootdir(self.archive_fn)
self.ctx.state[key] = value
return value