Skip to content

Commit

Permalink
Use checksum to detect RPM changes and drop the use of --archive
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ehelms committed Nov 2, 2023
1 parent 6565a8d commit 5f81240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theforeman.org/pipelines/lib/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"""
}
}

0 comments on commit 5f81240

Please sign in to comment.