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:
parent
38edcb605f
commit
f5ec5734e3
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user