From 70095deed1c442b3a7398f374128921f62d3ac1f Mon Sep 17 00:00:00 2001 From: "junsuk77.oh" Date: Mon, 13 May 2013 16:17:00 +0900 Subject: [PATCH] add pkg url info to handle Change-Id: I16594d3231ff0d7535e7a030c77fd5c45471e96f Signed-off-by: junsuk77.oh --- packaging/pkgmgr-info.spec | 2 +- src/pkgmgr-info.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/pkgmgr-info.spec b/packaging/pkgmgr-info.spec index ea87f48..c27a355 100755 --- a/packaging/pkgmgr-info.spec +++ b/packaging/pkgmgr-info.spec @@ -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 diff --git a/src/pkgmgr-info.c b/src/pkgmgr-info.c index 97860ba..0b1a6e6 100755 --- a/src/pkgmgr-info.c +++ b/src/pkgmgr-info.c @@ -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; } -- 2.7.4