Skip to content
Browse files

Unlink files that are going to be replaced by the unpack

Without this, the unpack will fail with ETXTBUSY on some files which are
being executed.

origin commit:
  • Loading branch information...
rhertzog authored and raveit65 committed Oct 6, 2018
1 parent 192451f commit 4cb4209b9a3055d63bfa6c99cd9cf9e76fcdbffd
Showing with 3 additions and 0 deletions.
  1. +3 −0
@@ -281,6 +281,9 @@ class DownloadState(object):
archive =, mode='r:gz')
total_members = len(archive.getmembers())
for i, member in enumerate(archive.getmembers()):
filename = os.path.join(PARENT_DIR,
if os.path.exists(filename) and not os.path.isdir(filename):
archive.extract(member, PARENT_DIR)
yield, i, total_members

0 comments on commit 4cb4209

Please sign in to comment.
You can’t perform that action at this time.