From 36e6062534930363ed1607e955cb9458b81aae91 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Mon, 2 Sep 2013 12:12:16 +0200 Subject: [PATCH] Version 0.9.6.1 - 02/Sep/2013 - fixed a bug in new dialog function (thanks to phenixia2003) --- ChangeLog.txt | 3 +++ src/ChangeLog.txt | 3 +++ src/zdialogplus.sh | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index c8fa26a..e63e29b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,6 @@ +Version 0.9.6.1 - 02/Sep/2013 + - fixed a bug in new dialog function (thanks to phenixia2003) + Version 0.9.6 - 01/Sep/2013 - fixed a slackpkg bug that does not recreate $WORKDIR if it does not exists. - added repository name in dialog diff --git a/src/ChangeLog.txt b/src/ChangeLog.txt index c8fa26a..e63e29b 100644 --- a/src/ChangeLog.txt +++ b/src/ChangeLog.txt @@ -1,3 +1,6 @@ +Version 0.9.6.1 - 02/Sep/2013 + - fixed a bug in new dialog function (thanks to phenixia2003) + Version 0.9.6 - 01/Sep/2013 - fixed a slackpkg bug that does not recreate $WORKDIR if it does not exists. - added repository name in dialog diff --git a/src/zdialogplus.sh b/src/zdialogplus.sh index 253adbf..3be8d1b 100755 --- a/src/zdialogplus.sh +++ b/src/zdialogplus.sh @@ -26,14 +26,14 @@ if [ "$SLACKPKGPLUS" = "on" ];then for i in $1; do BASENAME=$(cutpkg $i) PKGFOUND=$(grep -m1 -e "^${BASENAME}-[^-]\+-\(noarch\|fw\|${ARCH}\)" $TMPDIR/tmplist) - REPOPOS=$(grep " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//') + REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//') echo "$i \"$REPOPOS\" $ONOFF \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp done HINT="--item-help" else for i in $1; do - REPOPOS=$(grep " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//') + REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//') echo "$i \"$REPOPOS\" $ONOFF" >>$TMPDIR/dialog.tmp done HINT=""