From f73516466031f299b550103b951a313c578b7b85 Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Wed, 1 Nov 2023 11:24:10 -0400 Subject: [PATCH] Use explicit rsync options to detect unchanged RPMs when uploading to stagingyum. 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..0071438 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 --perms --devices --recursive --links --owner --group --verbose --partial --one-file-system --delete-after "tmp/$PROJECT/$VERSION" "$USER@$HOST:rsync_cache/$PROJECT"