printf "insert or rollback into packages select * from remote.packages P %s;\n" "$where"
printf "insert or rollback into packagefiles select * from remote.packagefiles P %s;\n" "$where"
printf "insert or rollback into scripts select * from remote.scripts P %s;\n" "$where"
+ printf "insert or rollback into packagedeps select * from remote.packagedeps P %s;\n" "$where"
if [ $mergefiles -eq 1 ]; then
printf "insert into files select F.* from remote.files F\n"
printf "inner join remote.packagefiles_pkgid P on P.hash = F.hash %s\n" "$where"