Keep only 4 latest versions of each package SA-588
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 14 Mar 2014 14:25:33 +0000 (14:25 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 14 Mar 2014 14:25:33 +0000 (14:25 +0000)
This is for APT only.

update-archive/symclean.sh
update-archive/update-archive.sh

index 8e6e1ff..5c7b65f 100755 (executable)
@@ -32,7 +32,6 @@ do
     echo "Removing"
     ls ${M}_*
     rm ${M}_*
-    # FIXME - instead of ls, move the files away
 done
 
 # rm -f $KEEP
index 23fd650..24e6ce6 100755 (executable)
@@ -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