X-Git-Url: https://pd.if.org/git/?p=zpackage;a=blobdiff_plain;f=zpm-test;h=860a5d1de31a6335f3e014285d3b560ae4b53f60;hp=9f6c8767e0b1c6460804cd403a8c5a412bd6b9f5;hb=2ac486ab18adbbb84563eafc0d67fa8da6ca7822;hpb=95c91056eb1fea49f96dcc2b1c5b91930e0b960a diff --git a/zpm-test b/zpm-test index 9f6c876..860a5d1 100755 --- a/zpm-test +++ b/zpm-test @@ -15,13 +15,14 @@ shift $((OPTIND - 1)) for pkgfile in "$@"; do if [ ! -f "$pkgfile" ]; then if [ "$verbose" -eq 1 ]; then - echo $pkgfile does not appear to be a zpm package file 1>&2 + echo $pkgfile does not exist 1>&2 fi exit 1 fi -appid=$(zpm shell $pkgfile 'pragma application_id;' | ( echo obase = 16; cat - ) | bc) -if [ "$appid" != "5A504442" ]; then +# 0x5A504442 == 1515209794 +appid=$(zpm shell $pkgfile 'pragma application_id;') +if [ "$appid" != "1515209794" ]; then if [ "$verbose" -eq 1 ]; then echo $pkgfile does not appear to be a zpm package file 1>&2 fi