aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-10 15:54:23 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-10 15:54:23 +0000
commitee362e585b5b696f455a4c642744cb588429eb9b (patch)
treeed4e32b7e33f7865b5e71bdc147b1e648834636c /trunk/lib/common.sh
parent494f01cda212b1359aac656cbaaaeb9f99345b9a (diff)
downloadsimplepkg-ee362e585b5b696f455a4c642744cb588429eb9b.tar.gz
simplepkg-ee362e585b5b696f455a4c642744cb588429eb9b.tar.bz2
small bugfix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@333 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index f331e56..5c53a09 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -122,7 +122,8 @@ function install_packages {
ROOT=/$root ARCH=$ARCH VERSION=$VERSION $SIMPLARET --install $pack --skip-checks
# check if the package was installed
- installed=`eval "ls /$root/var/log/packages/ | egrep '^$pack-[^-]+-[^-]+-[^-]+$'"`
+ pack="`echo $pack | sed -e 's/\+/\\\+/'`"
+ installed=`eval "ls /$root/var/log/packages/ | egrep -E '^$pack-[^-]+-[^-]+-[^-]+$'"`
check=$?
if [ ! -z "$installed" ] && [ "$check" == "0" ]; then