OPTION(X11_SUPPORT "Enable X support" ON)
IF(X11_SUPPORT)
ADD_DEFINITIONS("-DHAVE_X11")
- pkg_check_modules(pkgs REQUIRED security-server dlog elementary evas ecore appcore-efl ecore-x ail ecore-file pkgmgr-info iniparser)
+ pkg_check_modules(pkgs REQUIRED security-server dlog elementary evas ecore appcore-efl ecore-x ail ecore-file pkgmgr-parser pkgmgr-info iniparser)
ELSE()
- pkg_check_modules(pkgs REQUIRED security-server dlog elementary evas ecore appcore-efl ecore-wayland ail ecore-file pkgmgr-info iniparser)
+ pkg_check_modules(pkgs REQUIRED security-server dlog elementary evas ecore appcore-efl ecore-wayland ail ecore-file pkgmgr-parser pkgmgr-info iniparser)
ENDIF(X11_SUPPORT)
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-pkg_check_modules(libpkgs REQUIRED dbus-glib-1 dlog ail pkgmgr-info iniparser)
+pkg_check_modules(libpkgs REQUIRED dbus-glib-1 dlog ail pkgmgr-parser pkgmgr-info iniparser)
FOREACH(flag ${libpkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
} else { /* in case of package */
DBGE("(De)activate PKG[pkgid=%s, val=%d]", item->pkgid, val);
char *manifest = NULL;
-
- // FIXME!!!! pkgmgr_parser_get_manifest_file does not exist!
- //manifest = pkgmgr_parser_get_manifest_file(item->pkgid);
+ manifest = pkgmgr_parser_get_manifest_file(item->pkgid);
if (manifest == NULL) {
DBGE("Failed to fetch package manifest file\n");
exit(1);
if (val) {
pkgmgrinfo_pkginfo_h handle;
-
ret = pkgmgrinfo_pkginfo_get_pkginfo(item->pkgid, &handle);
if (ret < 0) {
- // FIXME!!!! pkgmgr_parser_parse_manifest_for_installation does not exist!
- // ret = pkgmgr_parser_parse_manifest_for_installation(manifest, NULL);
- ret = -1;
+ ret = pkgmgr_parser_parse_manifest_for_installation(manifest, NULL);
if (ret < 0) {
DBGE("insert in db failed\n");
}
}
}
else
- // FIXME!!!! pkgmgr_parser_parse_manifest_for_uninstallation does not exist!
- ret = -1;
- //ret = pkgmgr_parser_parse_manifest_for_uninstallation(manifest, NULL);
+ ret = pkgmgr_parser_parse_manifest_for_uninstallation(manifest, NULL);
if (ret < 0) {
DBGE("insert in db failed\n");
static int __insert_manifest_in_db(char *manifest)
{
-#if 0 // FIXME!!!! This method depends on a non-existant pkgmgr_parser_parse_manifest_for_installation
int ret = 0;
if (manifest == NULL) {
printf("Manifest file is NULL\n");
printf("insert in db failed\n");
return -1;
}
-#endif
return 0;
}
static int __fota_insert_manifest_in_db(char *manifest)
{
-#if 0 // FIXME!!!!! This method depends on a non-existant pkgmgr_parser_parse_manifest_for_installation
int ret = 0;
char *temp[] = {"fota=true", NULL};
return -1;
}
return 0;
-#endif
}
static int __remove_manifest_from_db(char *manifest)
{
-#if 0 // FIXME!!! pkgmgr_parser_parse_manifest_for_uninstallation does not exist!
int ret = 0;
if (manifest == NULL) {
printf("Manifest file is NULL\n");
return -1;
}
return 0;
-#endif
}
int app_func(const pkgmgr_appinfo_h handle, void *user_data)