repo: use OSTREE_TIMESTAMP (=1) for checked-out files
1 is a better choice than 0 because some programs use 0 as a special value; for example, GNU Tar warns of an "implausibly old timestamp" with 0. Closes: #330 Approved by: cgwalters
This commit is contained in:
1 parent
f94b191ae5
commit
0e9a875393
7 files changed
+35
-13
No files matched your search
@@ -982,9 +982,9 @@ file_to_archive_entry_common (GFile *root,
|
||||
}
|
||||
|
||||
archive_entry_update_pathname_utf8 (entry, pathstr);
|
||||
archive_entry_set_ctime (entry, ts, 0);
|
||||
archive_entry_set_mtime (entry, ts, 0);
|
||||
archive_entry_set_atime (entry, ts, 0);
|
||||
archive_entry_set_ctime (entry, ts, OSTREE_TIMESTAMP);
|
||||
archive_entry_set_mtime (entry, ts, OSTREE_TIMESTAMP);
|
||||
archive_entry_set_atime (entry, ts, OSTREE_TIMESTAMP);
|
||||
archive_entry_set_uid (entry, g_file_info_get_attribute_uint32 (file_info, "unix::uid"));
|
||||
archive_entry_set_gid (entry, g_file_info_get_attribute_uint32 (file_info, "unix::gid"));
|
||||
archive_entry_set_mode (entry, g_file_info_get_attribute_uint32 (file_info, "unix::mode"));
|
||||
|
||||
Reference in new issue
Block a user