PF.pkgid = '$pkgid'
on conflict (hash) do nothing
;
+
EOS
fi
# scripts
-# actual files
if [ $mergescripts -eq 1 ]; then
cat<<EOS
insert into files
EOS
fi
+package=$(zpm quote "$name")
+version=$(zpm quote "$version")
+
if [ -n "$newstatus" ]; then
newstatus=$(zpm quote "$newstatus")
- package=$(zpm quote "$name")
- version=$(zpm quote "$version")
cat <<EOS
update packages set status = '$newstatus'
where package = '$package' and version = '$version' and release = '$release'
fi
# elf info
+cat <<EOS
+insert or ignore into elfneeded
+select * from remote.elfneeded
+--on conflict (file, needed) do nothing
+;
+insert or ignore into elflibraries
+select * from remote.elflibraries
+--on conflict (file, soname) do nothing
+;
+EOS
+
# TODO check for adding file contents
echo 'commit;'