Skip to content

Commit e9b3eb7

Browse files
rockythornLouis Abel
authored andcommitted
Update apollo_tree calls to use v2 API for better advisory coverage
The v2 API aggregates advisories across all minor versions (e.g., all 8.x or 10.x releases) providing approximately 80% more advisories compared to the legacy v3 API which only matches exact product names. This ensures repositories have complete errata coverage. This also removes the "-i plus" for Rocky 10 as we should have a few advisories for this repo.
1 parent 32edb48 commit e9b3eb7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cron/stable-updates-10

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ if [ "$ret_val" -eq 0 ]; then
2828
# HighAvailability has no errata in the API at this time
2929
pushd /mnt/repos-staging/mirror/pub/rocky/${REVISION} || { echo "Cron: Directory doesn't exist"; exit 1; }
3030
python3 /usr/local/bin/apollo_tree -p $(pwd) \
31-
-n "Rocky Linux ${RLVER} \$arch" \
31+
-n 'Rocky Linux' \
32+
--major-version 10 \
3233
-i extras \
3334
-i images \
3435
-i isos \
3536
-i live \
3637
-i metadata \
37-
-i plus \
3838
-i devel \
3939
-i SAP \
4040
-i SAPHANA \

cron/stable-updates-8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ "$ret_val" -eq 0 ]; then
2626
popd || { echo "Cron: Could not change back to original directory"; exit 1; }
2727

2828
pushd /mnt/repos-staging/mirror/pub/rocky/8.10 || { echo "Cron: Directory doesn't exist"; exit 1; }
29-
python3.9 /usr/local/bin/apollo_tree -p $(pwd) -n 'Rocky Linux 8 $arch' -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
29+
python3.9 /usr/local/bin/apollo_tree -p $(pwd) -n 'Rocky Linux' --major-version 8 -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
3030
popd || { echo "Cron: Could not change back to original directory"; exit 1; }
3131

3232
pushd /root/toolkit/sync || { echo "Cron: Failed to change directory"; exit 1; }

cron/stable-updates-no-devel-8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ "$ret_val" -eq 0 ]; then
2525
popd
2626

2727
pushd /mnt/repos-staging/mirror/pub/rocky/8.10
28-
python3.9 /usr/local/bin/apollo_tree -p $(pwd) -n 'Rocky Linux 8 $arch' -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
28+
python3.9 /usr/local/bin/apollo_tree -p $(pwd) -n 'Rocky Linux' --major-version 8 -i Live -i Minimal -i devel -i extras -i images -i isos -i live -i metadata -i Devel -i plus -i nfv
2929
popd
3030

3131
pushd /root/toolkit/sync

0 commit comments

Comments
 (0)