From 6b4c684659828260c775d5cb8751d22f9c2c91c8 Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Wed, 1 Nov 2023 11:24:10 -0400 Subject: [PATCH] Use checksum to detect RPM changes and drop the use of --archive The --archive option includes --times implicitly that preserves modification time and results in all RPMs being thought of as changed. Instead we explicitly define the options that are included in --archive and drop the use of --times. --- upload_stage_rpms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload_stage_rpms b/upload_stage_rpms index e195342..d82dd27 100755 --- a/upload_stage_rpms +++ b/upload_stage_rpms @@ -5,4 +5,4 @@ USER='yumrepostage' HOST='web01.osuosl.theforeman.org' -rsync --archive --verbose --partial --one-file-system --delete-after "tmp/$PROJECT/$VERSION" "$USER@$HOST:rsync_cache/$PROJECT" +rsync --checksum --perms --recursive --links --verbose --partial --one-file-system --delete-after "tmp/$PROJECT/$VERSION" "$USER@$HOST:rsync_cache/$PROJECT"