diff idr_download_by_ids.py @ 5:e08b1dc0480c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/idr_download commit 5b2ba6c849aa344470fe1bb25f063dc3f8f790ae"
author iuc
date Mon, 08 Jun 2020 08:36:41 -0400
parents 11036f6197d6
children 5c743356df83
line wrap: on
line diff
--- a/idr_download_by_ids.py	Fri May 15 14:54:02 2020 -0400
+++ b/idr_download_by_ids.py	Mon Jun 08 08:36:41 2020 -0400
@@ -2,10 +2,11 @@
 import os
 import sys
 import tarfile
+import time
+from tempfile import TemporaryFile
 
 from libtiff import TIFF
 from PIL import Image
-from tempfile import TemporaryFile
 from omero.gateway import BlitzGateway  # noqa
 from omero.constants.namespaces import NSBULKANNOTATIONS  # noqa
 
@@ -281,6 +282,7 @@
                         tarinfo = tarfile.TarInfo(name=fname)
                         buf.seek(0, 2)
                         tarinfo.size = buf.tell()
+                        tarinfo.mtime = time.time()
                         buf.seek(0)
                         archive.addfile(tarinfo=tarinfo, fileobj=buf)
                 else:  # save image as individual file