handling the return value of replace_string
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 7 Feb 2013 10:36:40 +0000 (10:36 +0000)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 7 Feb 2013 10:36:40 +0000 (10:36 +0000)
Change-Id: Ia9c8987d76e86d7bbedf52a1f0f333bbf7985776

packaging/org.tizen.data-provider-master.spec
src/package.c

index c282c1c..a222154 100644 (file)
@@ -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
index 6275e79..a345c68 100644 (file)
@@ -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);