Problems with "." inside PN - fixed

This commit is contained in:
DT Netsolution GmbH 2012-04-23 11:11:37 +02:00
parent 5f7116aaf7
commit 89edef81d0

View File

@ -324,7 +324,8 @@ EOF
# determinte max version to delete # determinte max version to delete
local limit local limit
eval "`echo limit=\\$\\{OPSI_REPOS_PURGE_LIMIT_${PN}\\}`" 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 if [ -z "$limit" ] || [ ! `expr $limit + 1 2>/dev/null` ] ; then
limit=${OPSI_REPOS_PURGE_LIMIT} limit=${OPSI_REPOS_PURGE_LIMIT}
fi fi