aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-23 13:24:20 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-23 13:24:20 +0100
commitdacfe1eeef622d7db8824392db9b6be877ee6a8c (patch)
treec9d985944979c404afbc902c2dee30906482e746
parenta8f72186c447ba9b917c7f24a00497ae36dbc71f (diff)
wgtpkg-installer: adapt to new includes
Change-Id: Ia513839bdda2d3af7357485fe6613158303a3dfb
-rw-r--r--src/wgtpkg-installer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wgtpkg-installer.c b/src/wgtpkg-installer.c
index 7c27fd5..b5da59f 100644
--- a/src/wgtpkg-installer.c
+++ b/src/wgtpkg-installer.c
@@ -29,6 +29,8 @@
#include "verbose.h"
#include "wgtpkg.h"
+#include "wgt-info.h"
+#include "wgtpkg-install.h"
static const char appname[] = "wgtpkg-installer";
static const char *root;
@@ -62,6 +64,7 @@ static struct option options[] = {
int main(int ac, char **av)
{
int i;
+ struct wgt_info *ifo;
LOGAUTH(appname);
@@ -107,8 +110,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;
}