Fix ail_createdb is exited after removing old db files. 22/34422/2 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/common/20150128.103010 accepted/tizen/ivi/20150130.061422 accepted/tizen/mobile/20150128.105728 accepted/tizen/tv/20150129.004857 accepted/tizen/wearable/20150129.005207 submit/tizen/20150128.083630
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 27 Jan 2015 07:41:29 +0000 (16:41 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 27 Jan 2015 07:51:05 +0000 (16:51 +0900)
ail_createdb is returning -1 to exit after removing db files always.

BUG-Tizen=TC-2396

Change-Id: I103d7ec7ea45be5743ad24b4623e942a894f5f35

tool/src/createdb.c

index f203c74..e612505 100644 (file)
@@ -173,7 +173,6 @@ int main(int argc, char *argv[])
                        _E(" %s is not removed",APP_INFO_DB_FILE);
                if(remove(APP_INFO_DB_FILE_JOURNAL))
                        _E(" %s is not removed",APP_INFO_DB_FILE_JOURNAL);
                        _E(" %s is not removed",APP_INFO_DB_FILE);
                if(remove(APP_INFO_DB_FILE_JOURNAL))
                        _E(" %s is not removed",APP_INFO_DB_FILE_JOURNAL);
-                       return -1;
        }
        ret = setenv("AIL_INITDB", "1", 1);
        _D("AIL_INITDB : %d", ret);
        }
        ret = setenv("AIL_INITDB", "1", 1);
        _D("AIL_INITDB : %d", ret);