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 895e7e7fd11a8bdd4d1e239c3753cf60b5351d76 Author: Alexandre Detiste <[email protected]> Date: Thu Jan 22 10:02:04 2015 +0100 preserve original timestamp with 'cat' & 'dos2unix' methods --- lib/game_data_packager/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py index 003b571..cd2d5ad 100644 --- a/lib/game_data_packager/__init__.py +++ b/lib/game_data_packager/__init__.py @@ -1188,6 +1188,8 @@ class GameData(object): hasher = HashedFile.from_concatenated_files(wanted.name, open_files(), writer, size=wanted.size, progress=(wanted.size > QUITE_LARGE)) + orig_time = os.stat(self.found[provider.name]).st_mtime + os.utime(path, (orig_time, orig_time)) self.use_file(wanted, path, hasher) def fill_gap(self, package, wanted, download=False, log=True): @@ -1334,6 +1336,8 @@ class GameData(object): wf = open(tmp, 'wb') wf.write(contents.replace(b'\r\n', b'\n')) + orig_time = os.stat(found_name).st_mtime + os.utime(tmp, (orig_time, orig_time)) self.use_file(wanted, tmp, None) elif fmt in ('tar.gz', 'tar.bz2', 'tar.xz'): rf = open(found_name, 'rb') -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

