printf "insert or ignore into elfneeded select * from remote.elfneeded;\n"
printf "insert or ignore into elflibraries select * from remote.elflibraries;\n"
+ printf "insert or ignore into package_signatures select * from remote.package_signatures PS where PS.packagehash in (select hash from remote.packages);\n"
printf "commit;\n"
) | zpm shell $target