]> pd.if.org Git - zpackage/blob - zpm-init.c
exit with failure status if soname not found
[zpackage] / zpm-init.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "zpm.h"
4
5 int main(int ac, char **av){
6         struct zpm pkg;
7         int rv;
8
9         if (ac < 2) {
10                 fprintf(stderr, "usage: path\n");
11                 return 1;
12         }
13         rv = zpm_open(&pkg, av[1]);
14         if (rv) {
15                 zpm_close(&pkg);
16         }
17
18         return rv ? 0 : 1;
19 }