X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-list;fp=zpm-list;h=5868ef2d02b5ccdf34ac9a88ecc5039e940d449e;hb=e22b15789cb499e39534ee0034f4f56f94d5a5a4;hp=471a2809a2e370f2372f7661cb326d1c089232a0;hpb=4f60c538ec7111597176984e32d3996e4b5adb17;p=zpackage diff --git a/zpm-list b/zpm-list index 471a280..5868ef2 100755 --- a/zpm-list +++ b/zpm-list @@ -22,10 +22,6 @@ if [ -z "$pkgfile" ]; then exit 1 fi -if [ -n "$status" ]; then - status=$(zpm quote "$status") -fi - if [ $nameonly -eq 0 ]; then cols="pkgid" else @@ -37,6 +33,7 @@ if [ $verbose -eq 1 ]; then fi if [ -n "$status" ]; then + status=$(zpm quote "$status") where="where status = '$status'" fi @@ -44,8 +41,8 @@ pkgid=$1 if [ -n "$pkgid" ]; then eval $(zpm parse -E "$pkgid") - if [ -n "$package" ]; then - package=$(zpm quote "$package") + if [ -n "$name" ]; then + package=$(zpm quote "$name") where="$where and package = '$package'" fi if [ -n "$version" ]; then