]> pd.if.org Git - zpackage/commitdiff
merge elf information
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 6 Oct 2018 17:57:40 +0000 (17:57 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 6 Oct 2018 18:25:42 +0000 (18:25 +0000)
zpm-merge

index ada48aacfefcc6a0859908a38ae632a41f6d25bb..aa2b71fb3b1d85933178ebce4bb6175a8b7ee2c8 100755 (executable)
--- a/zpm-merge
+++ b/zpm-merge
@@ -134,11 +134,11 @@ where
 PF.pkgid = '$pkgid'
 on conflict (hash) do nothing
 ;
+
 EOS
 fi
 
 # scripts
-# actual files
 if [ $mergescripts -eq 1 ]; then
 cat<<EOS
 insert into files
@@ -152,10 +152,11 @@ on conflict (hash) do nothing
 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'
@@ -164,6 +165,17 @@ EOS
 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;'