Merge pull request #231 from kivy/corrupt_down
This prevents the updating of the kivy-ios build state if the download extraction fails. This used to prevent re-downloading
This commit is contained in:
commit
6e545769a5
1 changed files with 5 additions and 2 deletions
|
@ -578,6 +578,7 @@ class Recipe(object):
|
|||
value = self.ctx.state.get(key)
|
||||
if not value:
|
||||
value = self.get_archive_rootdir(self.archive_fn)
|
||||
if value is not None:
|
||||
self.ctx.state[key] = value
|
||||
return value
|
||||
|
||||
|
@ -614,7 +615,9 @@ class Recipe(object):
|
|||
fn = self.archive_fn
|
||||
if not exists(fn):
|
||||
self.download_file(self.url.format(version=self.version), fn)
|
||||
self.ctx.state[key] = self.get_archive_rootdir(self.archive_fn)
|
||||
status = self.get_archive_rootdir(self.archive_fn)
|
||||
if status is not None:
|
||||
self.ctx.state[key] = status
|
||||
|
||||
@cache_execution
|
||||
def extract(self):
|
||||
|
|
Loading…
Reference in a new issue