Fix pkg_info binary usage during image creation 81/34381/1 accepted/tizen/common/20150126.100506 accepted/tizen/wearable/20150128.040551 submit/tizen_common/20150126.100243 submit/tizen_mobile/20150129.000000 submit/tizen_mobile/20150213.000000 submit/tizen_tv/20150130.000000 submit/tizen_tv/20150130.050505 submit/tizen_wearable/20150127.000000
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Mon, 26 Jan 2015 09:52:01 +0000 (10:52 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Mon, 26 Jan 2015 09:52:45 +0000 (10:52 +0100)
BUG-Tizen=TC-2399

Linked to this change : https://review.tizen.org/gerrit/#/c/34380/
Change-Id: Ifee7f850bdec2d6d55c8b513bc888c99c1e523cc
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
packaging/pkgmgr.spec
tool/pkg_info.c

index 2577d54..c842469 100644 (file)
@@ -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
 
index cd7d461..64ba940 100644 (file)
@@ -28,6 +28,8 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <vconf.h>
+//Work around for https://bugs.tizen.org/jira/browse/TC-2399
+#include <ail_vconf.h>
 #include <pkgmgr_parser.h>
 #include <pkgmgr-info.h>
 #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;