remove csr routines in tv profile
[platform/core/appfw/pkgmgr-server.git] / src / pkgmgr-server.c
index 021b327..15cd72c 100644 (file)
@@ -42,7 +42,9 @@
 #include <pkgmgr/pkgmgr_parser_db.h>
 #include <tzplatform_config.h>
 #include <drm-tizen-apps.h>
+#ifdef TIZEN_FEATURE_CSR
 #include <csr-content-screening.h>
+#endif
 
 #include "pkgmgr_installer.h"
 #include "pkgmgr-server.h"
@@ -411,6 +413,7 @@ static int __pkgcmd_find_pid_by_cmdline(const char *dname,
        return pid;
 }
 
+#ifdef TIZEN_FEATURE_CSR
 static int __check_csr(backend_info *ptr)
 {
        csr_cs_context_h context = NULL;
@@ -436,6 +439,7 @@ static int __check_csr(backend_info *ptr)
 
        return 0;
 }
+#endif
 
 static int __pkgcmd_proc_iter_kill_cmdline(const char *apppath, int option)
 {
@@ -1454,6 +1458,7 @@ gboolean queue_job(void *data)
        ptr->req_type = item->req_type;
        DBG("handle request type [%d]", item->req_type);
 
+#ifdef TIZEN_FEATURE_CSR
        if (item->req_type == PKGMGR_REQUEST_TYPE_INSTALL ||
                        item->req_type == PKGMGR_REQUEST_TYPE_MOUNT_INSTALL ||
                        item->req_type == PKGMGR_REQUEST_TYPE_REINSTALL) {
@@ -1464,6 +1469,7 @@ gboolean queue_job(void *data)
                        goto end;
                }
        }
+#endif
 
        switch (item->req_type) {
        case PKGMGR_REQUEST_TYPE_INSTALL: