X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-contents;h=447e095a1eab9d97dfbf084474a7ee6993fbf83f;hb=881763b16a50b342676f3d59c2d883e2c39548ff;hp=ea9e3cdd134a7b84a233ff3d61c05b1916339c13;hpb=2179eab6d6bb95e781938b40fc3d998ef3cb5861;p=zpackage diff --git a/zpm-contents b/zpm-contents index ea9e3cd..447e095 100755 --- a/zpm-contents +++ b/zpm-contents @@ -51,10 +51,15 @@ while [ $# -gt 0 ]; do q=$(zpm quote -q "$pkgid") pkglist=",$q" else - warn "package $pkg not found, ignoring" + printf "package $pkg not found, ignoring\n" 1>&2 + exit 1 + fi + pkglist=${pkglist#,} + if [ -z "$pkglist" ]; then + printf "can't find any packages\n" 1>&2 + exit 1 fi done -pkglist=${pkglist#,} globlist= for glob in "$@"; do