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}