[game-data-packager] 04/21: Fix keeping timestamps of files from tarballs
Simon McVittie
smcv at debian.org
Thu Jan 22 01:10:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit c17a77be455d52383e7b247206f5b4a3deb45460
Author: Simon McVittie <smcv at debian.org>
Date: Thu Jan 22 00:27:47 2015 +0000
Fix keeping timestamps of files from tarballs
---
lib/game_data_packager/__init__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index c84149a..bb14c62 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1114,8 +1114,7 @@ class GameData(object):
size=entry.size,
progress=(entry.size > QUITE_LARGE))
wf.close()
- orig_time = time.mktime(entry.date_time + (0, 0, -1))
- os.utime(tmp, (orig_time, orig_time))
+ os.utime(tmp, (entry.mtime, entry.mtime))
if not self.use_file(wanted, tmp, hf):
os.remove(tmp)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list