changeset 5091:6cfcb25278a7

adapt the migration script to use drawing.* as member file names within the .tdraw container files
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 12 Sep 2009 19:16:05 +0200
parents 3aed6e5c26e5
children f17dd8cc0347 6024628e8d60
files MoinMoin/script/migration/1089999.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/1089999.py	Sat Sep 12 19:02:41 2009 +0200
+++ b/MoinMoin/script/migration/1089999.py	Sat Sep 12 19:16:05 2009 +0200
@@ -39,7 +39,10 @@
                     if ext != '.gif':
                         # get rid of the gif (TWikiDraw will (re)create
                         # a .png when someone edits the drawing)
-                        tar.add(filename, basename + ext)
+                        # we use drawing.* as tar member filenames EVER, so the
+                        # member filenames do not need to be changed when the
+                        # tar container file gets renamed:
+                        tar.add(filename, 'drawing' + ext)
                     os.remove(filename)
                 except OSError, err:
                     if err.errno != errno.ENOENT: