struct timeval tv;
bool is_root_cmd = false;
pm_tool_args data = { 0 };
+ GList *list;
/* Supported options */
/* Note: 'G' is reserved */
const char *short_options = "iurwmcgxCkaADL:lsd:p:t:n:T:e:M:X:Y:Z:qhGS";
ret = __convert_to_absolute_path(&data);
if (ret == -1)
printf("conversion of relative path to absolute path failed\n");
- printf("path is %s\n", data.pkg_path);
+ printf("path is ");
+ if (g_list_length(data.pkgs)) {
+ for (list = data.pkgs; list;
+ list = list->next) {
+ printf("%s ", (char *)list->data);
+ }
+ printf("\n");
+ } else {
+ printf("%s\n", data.pkg_path);
+ }
break;
case 'X': /* old_tpk */