From: Johannes Weiner Date: Mon, 3 Dec 2007 17:37:50 +0000 (+0100) Subject: Bug #204: Restore mtime for extracted files. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=d324dd089cd8d643a3d6616de11de178919e10e7;p=pkgutils-cross.git Bug #204: Restore mtime for extracted files. --- 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& 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