Skip to content

Commit

Permalink
Also write source-file into the topmost layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiseqube committed Sep 6, 2024
1 parent a69d9e0 commit deccfbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions perfact/zodbsync/zodbsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ def fs_write(self, path, data):
obj_id=path.rstrip('/').rsplit('/', 1)[-1],
)
src_fname = '{}.{}'.format(base, ext)
src_path = os.path.join(base_dir, src_fname)
new_data['src_fnames'] = [src_fname]
new_data['source'] = source

Expand All @@ -494,7 +493,7 @@ def fs_write(self, path, data):
self.logger.debug(
"Will write %d bytes of source" % len(source)
)
with open(src_path, 'wb') as f:
with open(os.path.join(write_base, src_fname), 'wb') as f:
f.write(source)

# We wrote the object to the topmost layer, so the index where the
Expand Down

0 comments on commit deccfbb

Please sign in to comment.