1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

- set mtime (if specified) after copying from .osc/ directory.

Patch by Roman Drahtmüller
This commit is contained in:
Adrian Schröter 2013-09-23 17:11:52 +02:00
parent 38edcb605f
commit f5ec5734e3

View File

@ -1456,6 +1456,8 @@ class Package:
revision=revision, progress_obj=self.progress_obj, mtime=mtime, meta=self.meta)
shutil.copyfile(storefilename, filename)
if mtime:
os.utime(filename, (-1, mtime))
if not origfile is None:
os.unlink(origfile)