diff --git a/shutils/binpkg-genindex.sh b/shutils/binpkg-genindex.sh
index 7817d93c39..15ff0fdc27 100644
--- a/shutils/binpkg-genindex.sh
+++ b/shutils/binpkg-genindex.sh
@@ -64,7 +64,7 @@ write_repo_pkgindex()
propsf="./var/cache/xbps/metadata/$pkgname/props.plist"
cd $tmppkgdir && tar xfjp $i $propsf
if [ $? -ne 0 ]; then
- msg_warn "Couldn't extract $i metadata file!"
+ msg_warn "Couldn't extract $(basename $i) metadata!"
continue
fi
write_repo_pkgindex_dict $propsf $pkgindexf $(basename $i)
@@ -157,7 +157,7 @@ write_repo_pkgindex_dict()
echo "filename" >> $tmpdictf
echo "$binpkgf" >> $tmpdictf
echo "filename-sha256" >> $tmpdictf
- echo "$($XBPS_DIGEST_CMD $binpkg)" \
+ echo "$(xbps-digest $binpkg)" \
>> $tmpdictf
continue
# Continue until found.