From d324dd089cd8d643a3d6616de11de178919e10e7 Mon Sep 17 00:00:00 2001
From: Johannes Weiner <hannes@saeurebad.de>
Date: Mon, 3 Dec 2007 18:37:50 +0100
Subject: [PATCH] Bug #204: Restore mtime for extracted files.

---
 pkgutil.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgutil.cc b/pkgutil.cc
index b3afa51..216ca53 100644
--- a/pkgutil.cc
+++ b/pkgutil.cc
@@ -424,7 +424,7 @@ void pkgutil::pkg_install(const string& filename, const set<string>& keep_list,
 		                           (real_filename.c_str()));
 
 		// Extract file
-		unsigned int flags = ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_UNLINK;
+		unsigned int flags = ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_UNLINK;
 
 		if (archive_read_extract(archive, entry, flags) != ARCHIVE_OK) {
 			// If a file fails to install we just print an error message and
-- 
2.45.2