" <interface name='org.tizen.pkgmgr'>"
" <method name='install'>"
" <arg type='u' name='uid' direction='in'/>"
+ " <arg type='s' name='pkgtype' direction='in'/>"
" <arg type='s' name='pkgpath' direction='in'/>"
" <arg type='as' name='args' direction='in'/>"
" <arg type='i' name='ret' direction='out'/>"
" </method>"
" <method name='mount_install'>"
" <arg type='u' name='uid' direction='in'/>"
+ " <arg type='s' name='pkgtype' direction='in'/>"
" <arg type='s' name='pkgpath' direction='in'/>"
" <arg type='as' name='args' direction='in'/>"
" <arg type='i' name='ret' direction='out'/>"
GDBusMethodInvocation *invocation, GVariant *parameters)
{
uid_t target_uid = (uid_t)-1;
+ char *arg_pkgtype = NULL;
const char *pkgtype;
char *pkgpath = NULL;
char *args = NULL;
int i = 0;
int len = 0;
- g_variant_get(parameters, "(u&s@as)", &target_uid, &pkgpath, &value);
+ g_variant_get(parameters, "(u&s&s@as)", &target_uid, &arg_pkgtype,
+ &pkgpath, &value);
tmp_args = (gchar **)g_variant_get_strv(value, &args_count);
for (i = 0; i < args_count; i++)
}
pkgtype = _get_pkgtype_from_file(pkgpath);
+ if (!pkgtype && arg_pkgtype)
+ pkgtype = (const char *)arg_pkgtype;
if (pkgtype == NULL) {
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(is)", PKGMGR_R_ECOMM, ""));
GDBusMethodInvocation *invocation, GVariant *parameters)
{
uid_t target_uid = (uid_t)-1;
+ char *arg_pkgtype = NULL;
const char *pkgtype;
char *pkgpath = NULL;
char *args = NULL;
int i = 0;
int len = 0;
- g_variant_get(parameters, "(u&s@as)", &target_uid, &pkgpath, &value);
+ g_variant_get(parameters, "(u&s&s@as)", &target_uid, &arg_pkgtype,
+ &pkgpath, &value);
tmp_args = (gchar **)g_variant_get_strv(value, &args_count);
for (i = 0; i < args_count; i++)
}
pkgtype = _get_pkgtype_from_file(pkgpath);
+ if (!pkgtype && arg_pkgtype)
+ pkgtype = (const char *)arg_pkgtype;
if (pkgtype == NULL) {
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(is)", PKGMGR_R_ECOMM, ""));