fixed bug, find files to purge

This commit is contained in:
DT Netsolution GmbH 2012-04-23 12:13:59 +02:00
parent 4e08250390
commit 9007cb72d4
1 changed files with 1 additions and 1 deletions

View File

@ -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}