X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwgtpkg-installer.c;h=ea08fce416b9ef65d3d4b03762cde3a739d1967f;hb=26aaf29a3694750834b9eefb6b6e4553bc5ea83f;hp=7c27fd5039782f2ed8fadadc1599c1912eb870f6;hpb=c0fc18e47e49dd4e3cc2f09452a19297dad63f9c;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-installer.c b/src/wgtpkg-installer.c index 7c27fd5..ea08fce 100644 --- a/src/wgtpkg-installer.c +++ b/src/wgtpkg-installer.c @@ -27,8 +27,13 @@ #include #include +#include + #include "verbose.h" -#include "wgtpkg.h" +#include "wgtpkg-permissions.h" +#include "wgtpkg-xmlsec.h" +#include "wgt-info.h" +#include "wgtpkg-install.h" static const char appname[] = "wgtpkg-installer"; static const char *root; @@ -62,6 +67,7 @@ static struct option options[] = { int main(int ac, char **av) { int i; + struct wgt_info *ifo; LOGAUTH(appname); @@ -107,8 +113,11 @@ int main(int ac, char **av) /* install widgets */ av += optind; root = *av++; - for ( ; *av ; av++) - install_widget(*av, root, force); + for ( ; *av ; av++) { + ifo = install_widget(*av, root, force); + if (ifo) + wgt_info_unref(ifo); + } return 0; }