From 44d624c773f6268b4e4f3a21ea5da5a4654a22f0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 14 Mar 2014 14:25:33 +0000 Subject: [PATCH] Keep only 4 latest versions of each package SA-588 This is for APT only. --- update-archive/symclean.sh | 1 - update-archive/update-archive.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/update-archive/symclean.sh b/update-archive/symclean.sh index 8e6e1ff..5c7b65f 100755 --- a/update-archive/symclean.sh +++ b/update-archive/symclean.sh @@ -32,7 +32,6 @@ do echo "Removing" ls ${M}_* rm ${M}_* - # FIXME - instead of ls, move the files away done # rm -f $KEEP diff --git a/update-archive/update-archive.sh b/update-archive/update-archive.sh index 23fd650..24e6ce6 100755 --- a/update-archive/update-archive.sh +++ b/update-archive/update-archive.sh @@ -151,7 +151,9 @@ for vdist in $DISTRIBUTIONS ; do fi fi done - # ${confdir}/symclean.sh $d + for arch in $architectures; do + ${confdir}/symclean.sh $d/${arch} + done rm -f $d/Release if $has_packages; then -- 1.7.10.4