Merge pull request #191 from kived/fix-archive_root

fix archive_root property to not return None
This commit is contained in:
Richard Larkin 2016-07-04 18:58:09 +02:00 committed by GitHub
commit e4e4c1cd89

View file

@ -573,7 +573,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