From 89edef81d03173603da864137a30b9301704758f Mon Sep 17 00:00:00 2001 From: DT Netsolution GmbH Date: Mon, 23 Apr 2012 11:11:37 +0200 Subject: [PATCH] Problems with "." inside PN - fixed --- lib/builder-targets.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh index 7283248..c2b167c 100644 --- a/lib/builder-targets.sh +++ b/lib/builder-targets.sh @@ -324,7 +324,8 @@ EOF # determinte max version to delete 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 limit=${OPSI_REPOS_PURGE_LIMIT} fi