mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 05:38:43 +02:00
- set mtime (if specified) after copying from .osc/ directory.
Patch by Roman Drahtmüller
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user