Keep only 3 unstables in repo

This commit is contained in:
Joshua M. Boniface
2025-04-06 14:25:19 -04:00
parent fe2a9f1fab
commit ce16909663
+2 -2
View File
@@ -144,7 +144,7 @@ jobs:
fi
# Only keep ${NKEEP} (4) unstables; we have to do this manually since reprepro doesn't have granularity for this at the component level
if [[ ${COMPONENT} == "unstable" ]]; then
NKEEP=4
NKEEP=3
# Get whatever the oldest version is; since these are dated, a simple numerical sort works
LIST="$( sudo reprepro -b /srv/debian -C unstable list ${{ matrix.release }} | awk '{ print $NF }' | sort -rn | uniq )"
COUNT=$( wc -l <<<"${LIST}" )
@@ -289,7 +289,7 @@ jobs:
fi
# Only keep ${NKEEP} (4) unstables; we have to do this manually since reprepro doesn't have granularity for this at the component level
if [[ ${COMPONENT} == "unstable" ]]; then
NKEEP=4
NKEEP=3
# Get whatever the oldest version is; since these are dated, a simple numerical sort works
LIST="$( sudo reprepro -b /srv/ubuntu -C unstable list ${{ matrix.release }} | awk '{ print $NF }' | sort -rn | uniq )"
COUNT=$( wc -l <<<"${LIST}" )