summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-02-07 10:36:40 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-02-07 10:36:40 (GMT)
commit7f262791e53ad0eb9f680265d3a3a20949b2cf68 (patch)
treeb4edc42b1090ee2f3587c13e9e98ae8ad689b76c
parent99dfc39dc0362ec8ced7baf86bd65fe189163f43 (diff)
downloaddata-provider-master-7f262791e53ad0eb9f680265d3a3a20949b2cf68.zip
data-provider-master-7f262791e53ad0eb9f680265d3a3a20949b2cf68.tar.gz
data-provider-master-7f262791e53ad0eb9f680265d3a3a20949b2cf68.tar.bz2
handling the return value of replace_string
Change-Id: Ia9c8987d76e86d7bbedf52a1f0f333bbf7985776
-rw-r--r--packaging/org.tizen.data-provider-master.spec2
-rw-r--r--src/package.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/packaging/org.tizen.data-provider-master.spec b/packaging/org.tizen.data-provider-master.spec
index c282c1c..a222154 100644
--- a/packaging/org.tizen.data-provider-master.spec
+++ b/packaging/org.tizen.data-provider-master.spec
@@ -1,6 +1,6 @@
Name: org.tizen.data-provider-master
Summary: Master service provider for liveboxes.
-Version: 0.16.1
+Version: 0.16.2
Release: 1
Group: framework/livebox
License: Flora License
diff --git a/src/package.c b/src/package.c
index 6275e79..a345c68 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1039,16 +1039,13 @@ static inline int assign_new_slave(struct pkg_info *info)
DbgPrint("Slave package: \"%s\" (abi: %s)\n", tmp, info->abi);
s_pkgname = util_replace_string(tmp, REPLACE_TAG_APPID, info->pkgname);
if (!s_pkgname) {
+ DbgPrint("Failed to get replaced string\n");
s_pkgname = strdup(tmp);
if (!s_pkgname) {
ErrPrint("Heap: %s\n", strerror(errno));
DbgFree(s_name);
return -ENOMEM;
}
- } else if (!info->secured) {
- DbgPrint("Slave package name is specified but the livebox is not secured\n");
- DbgPrint("Forcely set secured flag for livebox %s\n", info->pkgname);
- info->secured = 1;
}
DbgPrint("New slave name is %s, it is assigned for livebox %s (using %s)\n", s_name, info->pkgname, s_pkgname);