bug fix: add error handling for preventing duplicate file 89/222689/1 submit/tizen/20200120.023604
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 17 Jan 2020 07:30:56 +0000 (16:30 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 17 Jan 2020 07:30:56 +0000 (16:30 +0900)
Change-Id: If3a00019e8b6d6ad586c5e2d5c38b0989c0fa966

agent/download-agent-file.c
packaging/download-provider.spec

index cc400e2..c60e6a9 100755 (executable)
@@ -552,6 +552,9 @@ da_ret_t start_file_writing(da_info_t *da_info)
                free(origin_path);
                if (file_info)
                        ret = __decide_file_path_for_resume(file_info);
+       } else if (file_info->file_path) {
+               DA_LOGE("Already exist");
+               return ret;
        } else {
                ret = __decide_file_path(da_info);
        }
index 7e82c7b..d380bff 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.118
+Version:    2.1.119
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0