From 5f81240d87872b832d99893b12320c38513f46b8 Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Thu, 2 Nov 2023 08:22: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. --- theforeman.org/pipelines/lib/packaging.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theforeman.org/pipelines/lib/packaging.groovy b/theforeman.org/pipelines/lib/packaging.groovy index ae643b89..6836d1a6 100644 --- a/theforeman.org/pipelines/lib/packaging.groovy +++ b/theforeman.org/pipelines/lib/packaging.groovy @@ -479,7 +479,7 @@ def rsync_yum(user, ssh_key, collection, target, version) { sh """ export RSYNC_RSH="ssh -i ${ssh_key}" - /usr/bin/rsync --archive --verbose --partial --one-file-system --delete-after ${collection}/${version} ${target_path} + /usr/bin/rsync --checksum --perms --recursive --links --verbose --partial --one-file-system --delete-after ${collection}/${version} ${target_path} """ } }