5 int main(int ac, char **av){
11 fprintf(stderr, "usage: db path\n");
15 if (zpm_open(&pkg, av[1])) {
17 for (i=2; i<ac; i++) {
18 if (zpm_import(&pkg, av[2], 0, hash)) {
19 fprintf(stdout, "%s\n", hash);
20 // zpm_addtopackage(&pkg, hash, 0);
21 //fprintf(stdout, "%s %s\n", hash, av[2]);
29 fprintf(stderr, "failed to open database %s\n", av[1]);