Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
utils-jbus: adding comments
[src/app-framework-main.git]
/
src
/
wgtpkg-installer.c
diff --git
a/src/wgtpkg-installer.c
b/src/wgtpkg-installer.c
index
7c27fd5
..
ea08fce
100644
(file)
--- a/
src/wgtpkg-installer.c
+++ b/
src/wgtpkg-installer.c
@@
-27,8
+27,13
@@
#include <errno.h>
#include <getopt.h>
#include <errno.h>
#include <getopt.h>
+#include <libxml/tree.h>
+
#include "verbose.h"
#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;
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;
int main(int ac, char **av)
{
int i;
+ struct wgt_info *ifo;
LOGAUTH(appname);
LOGAUTH(appname);
@@
-107,8
+113,11
@@
int main(int ac, char **av)
/* install widgets */
av += optind;
root = *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;
}
return 0;
}