Skip to content

Commit

Permalink
Merge pull request mypaint#1255 from mypaint/wip/jtojnar/export-zip
Browse files Browse the repository at this point in the history
Fix exporting brushes with mtime 0
  • Loading branch information
AesaraB authored Sep 1, 2024
2 parents e1c9305 + 7fd9157 commit ad795c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ installed before you can build it.
- setuptools
- pygobject
- gtk3 (>= 3.12)
- python (>= 2.7.4)
- python (>= 3.8)
- swig (>= 3)
- numpy
- librsvg2 (and its svg gdk-pixbuf loader)
Expand Down
8 changes: 6 additions & 2 deletions gui/brushmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,12 @@ def export_group(self, group, filename):
"""
brushes = self.get_group_brushes(group)
order_conf = b"Group: %s\n" % utf8(group)
with zipfile.ZipFile(filename, mode="w") as zf:
order_conf = b'Group: %s\n' % utf8(group)
with zipfile.ZipFile(
filename,
mode='w',
strict_timestamps=False,
) as zf:
for brush in brushes:
prefix = brush._get_fileprefix()
zf.write(prefix + ".myb", brush.name + ".myb")
Expand Down

0 comments on commit ad795c7

Please sign in to comment.