4 #include "sqlite/sqlite3.h"
6 int main(int ac, char **av){
12 fprintf(stderr, "usage: db path\n");
17 i = sqlite3_config(SQLITE_CONFIG_MMAP_SIZE,98222080);
22 if (zpm_open(&pkg, av[1])) {
24 for (i=2; i<ac; i++) {
25 if (zpm_import(&pkg, av[i], 0, hash)) {
26 fprintf(stdout, "%s\n", hash);
27 // zpm_addtopackage(&pkg, hash, 0);
28 //fprintf(stdout, "%s %s\n", hash, av[2]);
36 fprintf(stderr, "failed to open database %s\n", av[1]);