From 2b6b8e77964216c4707d63fd0b2581113e17ee52 Mon Sep 17 00:00:00 2001 From: Matyas Selmeci Date: Tue, 17 Oct 2023 18:38:53 -0500 Subject: [PATCH] Preserve file times; needed for `--link-dest` to consider files identical --- bin/pull_condor_rpms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pull_condor_rpms.sh b/bin/pull_condor_rpms.sh index ccc0f92..cfda2d8 100755 --- a/bin/pull_condor_rpms.sh +++ b/bin/pull_condor_rpms.sh @@ -70,6 +70,6 @@ esac # get every build available for that package from every applicable condor repo RSYNC_URL="$RSYNC_ROOT/$CONDOR_SERIES/$DVER/x86_64/$CONDOR_REPO/$SOURCE_SET*.rpm" echo "rsyncing $RSYNC_URL to $NEW_REPO_DIR" -if ! rsync $RSYNC_URL $NEW_REPO_DIR --link-dest $CURRENT_REPO_DIR; then +if ! rsync --times $RSYNC_URL $NEW_REPO_DIR --link-dest $CURRENT_REPO_DIR; then echo "Warning: No packages found for $RSYNC_URL. Skipping" fi