forked from tools/pkgutils
Bug #204: Restore mtime for extracted files.
This commit is contained in:
parent
2d9e8fdf3f
commit
d324dd089c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user