Fix mediadb-update exit value 43/77443/1 accepted/tizen/common/20160630.151849 accepted/tizen/ivi/20160630.063056 accepted/tizen/mobile/20160630.063110 accepted/tizen/tv/20160630.063048 accepted/tizen/wearable/20160630.063035 submit/tizen/20160630.010034
authorMinje Ahn <minje.ahn@samsung.com>
Thu, 30 Jun 2016 00:47:23 +0000 (09:47 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Thu, 30 Jun 2016 00:47:23 +0000 (09:47 +0900)
Change-Id: I7fed6000e0550960cea37c31e367e623865b2b5f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/media-server.spec
src/mediadb-update.c

index 7e285dd..abcabcd 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.2.93
+Version:    0.2.94
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0
index e2c98f6..e45f2d6 100755 (executable)
@@ -479,7 +479,7 @@ int main(int argc, char **argv)
 
        if (argc > 3 || argc < 2) {
                print_help();
-               exit(1);
+               exit(0);
        }
 
        argv1 = strdup(argv[1]);
@@ -489,17 +489,17 @@ int main(int argc, char **argv)
        if (argc == 2) {
                if (strcmp(argv1 , "--help") == 0) {
                        print_help();
-                       exit(1);
+                       exit(0);
                }
 
                if (strcmp(argv1 , "check_db") == 0) {
                        __check_media_db();
-                       exit(1);
+                       exit(0);
                }
 
                if (strcmp(argv1 , "check_mmc") == 0) {
                        __check_mmc();
-                       exit(1);
+                       exit(0);
                }
 
                if (check_path(argv1) == DIRECTORY_OK) {
@@ -513,12 +513,12 @@ int main(int argc, char **argv)
                        ret = dir_scan_non_recursive(req_path);
                        if (ret != 0) {
                                printf("error : %d\n", ret);
-                               exit(1);
+                               exit(0);
                        }
                } else {
                        printf("[%d]invalid path\n", __LINE__);
                        print_help();
-                       exit(1);
+                       exit(0);
                }
        } else if (argc == 3) {
                argv2 = strdup(argv[2]);
@@ -534,17 +534,17 @@ int main(int argc, char **argv)
                                ret = dir_scan_recursive(req_path);
                                if (ret != 0) {
                                        printf("error : %d\n", ret);
-                                       exit(1);
+                                       exit(0);
                                }
                        } else {
                                printf("[%d]invalid path\n", __LINE__);
                                print_help();
-                               exit(1);
+                               exit(0);
                        }
                } else {
                        printf("[%d] invalide option\n", __LINE__);
                        print_help();
-                       exit(1);
+                       exit(0);
                }
        }