Skip to content

Commit

Permalink
rpmwatcher/sync_repos.sh: only sync the supported and dev releases
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stormi committed Apr 18, 2023
1 parent b8261d9 commit 4327714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rpmwatcher/sync_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 4327714

Please sign in to comment.