Skip to content

Commit

Permalink
Fix wrong commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Aug 9, 2019
1 parent 762bbfb commit 5cdfa44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trollmoves/client.py
Expand Up @@ -263,7 +263,8 @@ def unpack_callback(var):
packname = var.pop('uid')
del var['uri']
archive = os.path.join(local_dir, packname)
os.fsync(arch_fd)
with open(archive, 'rb+') as arch_file:
os.fsync(arch_file.fileno())
new_names = unpackers[unpack](archive, delete)

var['dataset'] = [dict(uid=nn, uri=os.path.join(local_dir, nn)) for nn in new_names]
Expand Down

0 comments on commit 5cdfa44

Please sign in to comment.