From: Baptiste DURAND Date: Mon, 26 Jan 2015 09:52:01 +0000 (+0100) Subject: Fix pkg_info binary usage during image creation X-Git-Tag: submit/tizen_tv/20150130.000000 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_tv%2F20150130.000000;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix pkg_info binary usage during image creation BUG-Tizen=TC-2399 Linked to this change : https://review.tizen.org/gerrit/#/c/34380/ Change-Id: Ifee7f850bdec2d6d55c8b513bc888c99c1e523cc Signed-off-by: Baptiste DURAND --- diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec index 2577d54..c842469 100644 --- a/packaging/pkgmgr.spec +++ b/packaging/pkgmgr.spec @@ -36,6 +36,9 @@ BuildRequires: pkgmgr-info-parser BuildRequires: libsmack BuildRequires: fdupes +## Work around for https://bugs.tizen.org/jira/browse/TC-2399 +BuildRequires: ail-vconf-devel + %description Packager Manager client library package for packaging diff --git a/tool/pkg_info.c b/tool/pkg_info.c index cd7d461..64ba940 100644 --- a/tool/pkg_info.c +++ b/tool/pkg_info.c @@ -28,6 +28,8 @@ #include #include #include +//Work around for https://bugs.tizen.org/jira/browse/TC-2399 +#include #include #include #include "package-manager.h" @@ -2216,7 +2218,8 @@ int main(int argc, char *argv[]) gettimeofday(&tv, NULL); starttime = tv.tv_sec * 1000l + tv.tv_usec / 1000l; - locale = vconf_get_str(VCONFKEY_LANGSET); + locale = ail_vconf_get_str(VCONFKEY_LANGSET); + //Work around for https://bugs.tizen.org/jira/browse/TC-2399 if (locale == NULL) { printf("locale is NULL\n"); ret = -1;