aboutsummaryrefslogtreecommitdiffstats
path: root/meta-application-manager/recipes-application-framework/pkgmgr-info
diff options
context:
space:
mode:
Diffstat (limited to 'meta-application-manager/recipes-application-framework/pkgmgr-info')
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc5
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch26
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc
index be9193a..eb01947 100644
--- a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc
@@ -4,7 +4,10 @@ SECTION = "Application Framework/Package Management"
LICENSE = "Apache-2.0"
PV = "0.0.134"
-SRC_URI = " file://TizenCommonCMakeMacro.patch "
+SRC_URI = " \
+ file://TizenCommonCMakeMacro.patch \
+ file://0002-pkgmgr-info-journal-perser-db.patch \
+ "
S = "${WORKDIR}/git"
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch
new file mode 100644
index 0000000..87fb4a5
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch
@@ -0,0 +1,26 @@
+--- a/parser/pkgmgr_parser_db.c
++++ b/parser/pkgmgr_parser_db.c
+@@ -2198,15 +2198,21 @@
+ ret = chown(files[i], uid, userinfo->pw_gid);
+ SET_SMACK_LABEL(files[i],uid)
+ if (ret == -1) {
++ if (files[i] == journal_file && errno == ENOENT)
++ continue;
+ strerror_r(errno, buf, sizeof(buf));
+- _LOGD("FAIL : chown %s %d.%d, because %s", db_file, uid, userinfo->pw_gid, buf);
++ //_LOGD("FAIL : chown %s %d.%d, because %s", db_file, uid, userinfo->pw_gid, buf);
++ _LOGD("FAIL : chown %s %d.%d, because %s", files[i], uid, userinfo->pw_gid, buf);
+ return -1;
+ }
+
+ ret = chmod(files[i], S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
+ if (ret == -1) {
++ if (files[i] == journal_file && errno == ENOENT)
++ continue;
+ strerror_r(errno, buf, sizeof(buf));
+- _LOGD("FAIL : chmod %s 0664, because %s", db_file, buf);
++ //_LOGD("FAIL : chmod %s 0664, because %s", db_file, buf);
++ _LOGD("FAIL : chmod %s 0664, because %s", files[i], buf);
+ return -1;
+ }
+ }