From 4327714e785a834bbdf57c082a12005e53857d2c Mon Sep 17 00:00:00 2001 From: Samuel Verschelde Date: Tue, 18 Apr 2023 19:18:37 +0200 Subject: [PATCH] rpmwatcher/sync_repos.sh: only sync the supported and dev releases rsync in itself is very fast, but the extraction of the names of the source RPMs for each RPM is slow, so let's do it only when necessary. Signed-off-by: Samuel Verschelde --- scripts/rpmwatcher/sync_repos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rpmwatcher/sync_repos.sh b/scripts/rpmwatcher/sync_repos.sh index 3b43e68..f3b6c68 100755 --- a/scripts/rpmwatcher/sync_repos.sh +++ b/scripts/rpmwatcher/sync_repos.sh @@ -2,7 +2,7 @@ # Must be run from the parent directory of the rsynced repositories mkdir -p xcp-ng mkdir -p xcp-ng_rpms -for version in "8.3" "8.2" "8.1" "8.0" "7.6"; do +for version in "8.3" "8.2"; do MAJOR=${version:0:1} rsync -rlptv updates.xcp-ng.org::repo/$MAJOR/$version/*/Source/SPackages/*.src.rpm xcp-ng/$version/ rsync -rlptv updates.xcp-ng.org::repo/$MAJOR/$version/*/x86_64/Packages/*.rpm xcp-ng_rpms/$version/