Hide Forgot
Description of problem: When using reposync on RHEL 8 the files that get created in the local repository get a timestamp matching the time the local file is created. This is a deviation from previous releases of RHEL in which the timestamp would match that of the server. Version-Release number of selected component (if applicable): All versions How reproducible: Always Steps to Reproduce: 1. # reposync --repoid=<repoid> Actual results: Files created have timestamp from the time they get created locally Expected results: Expected that there is either a flag like those used in rsync that allows for preserving the server timestamps (--preserve for example for rsync and for cp). Or that the default is to preserve the timestamp from the repo being synced. Additional info: Other syncing utilities either have a --preserve flag as is the case for rsync/cp, or they have the default be to preserve the server timestamp, in the case of wget/curl.
PR https://github.com/rpm-software-management/librepo/pull/149 and https://github.com/rpm-software-management/libdnf/pull/725
And finally PR https://github.com/rpm-software-management/dnf-plugins-core/pull/332 introducing --remote-time command line option for reposync command.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3583