add pkg url info to handle submit/tizen_2.1/20130514.054738
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Mon, 13 May 2013 07:17:00 +0000 (16:17 +0900)
committerjunsuk77.oh <junsuk77.oh@samsung.com>
Mon, 13 May 2013 07:17:00 +0000 (16:17 +0900)
Change-Id: I16594d3231ff0d7535e7a030c77fd5c45471e96f
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
packaging/pkgmgr-info.spec
src/pkgmgr-info.c

index ea87f48..c27a355 100755 (executable)
@@ -1,7 +1,7 @@
 Name:       pkgmgr-info
 Summary:    Packager Manager infomation api for package
 Version:    0.0.108
-Release:    1
+Release:    2
 Group:      Application Framework/Package Management
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index 97860ba..0b1a6e6 100755 (executable)
@@ -1053,6 +1053,11 @@ static int __pkginfo_cb(void *data, int ncols, char **coltxt, char **colname)
                                info->manifest_info->label->lang = NULL;
                                info->manifest_info->description->lang = NULL;
                        }
+               } else if (strcmp(colname[i], "package_url") == 0 ){
+                       if (coltxt[i])
+                               info->manifest_info->package_url = strdup(coltxt[i]);
+                       else
+                               info->manifest_info->package_url = NULL;
                } else
                        continue;
        }