mirror of
https://github.com/reactos/CMake.git
synced 2024-12-09 20:35:26 +00:00
Merge topic 'preserve-timestamps-on-tar-extract'
666f328
Preserve timestamps on files on tar extract.
This commit is contained in:
commit
5233d34c31
@ -1931,12 +1931,20 @@ bool extract_tar(const char* outFileName, bool verbose,
|
||||
}
|
||||
if(extract)
|
||||
{
|
||||
r = archive_write_disk_set_options(ext, ARCHIVE_EXTRACT_TIME);
|
||||
if (r != ARCHIVE_OK)
|
||||
{
|
||||
cmSystemTools::Error(
|
||||
"Problem with archive_write_disk_set_options(): ",
|
||||
archive_error_string(ext));
|
||||
}
|
||||
|
||||
r = archive_write_header(ext, entry);
|
||||
if (r != ARCHIVE_OK)
|
||||
{
|
||||
cmSystemTools::Error("Problem with archive_write_header(): ",
|
||||
archive_error_string(a));
|
||||
cmSystemTools::Error("Curren file:",
|
||||
archive_error_string(ext));
|
||||
cmSystemTools::Error("Current file:",
|
||||
archive_entry_pathname(entry));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user