From 9007cb72d4ee2d30c68c53011281b74f631b274c Mon Sep 17 00:00:00 2001 From: DT Netsolution GmbH Date: Mon, 23 Apr 2012 12:13:59 +0200 Subject: [PATCH] fixed bug, find files to purge --- lib/builder-targets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh index c4f47f5..3ef979f 100644 --- a/lib/builder-targets.sh +++ b/lib/builder-targets.sh @@ -325,7 +325,7 @@ EOF # determinte max version to delete local limit - local pn_limit=`echo ${PN} | sed "s/\./_/g"` + local pn_limit=`echo ${PN} | sed "s/[\.\-]/_/g"` eval "`echo limit=\\$\\{OPSI_REPOS_PURGE_LIMIT_${pn_limit}\\}`" if [ -z "$limit" ] || [ ! `expr $limit + 1 2>/dev/null` ] ; then limit=${OPSI_REPOS_PURGE_LIMIT}