Change the naming rule for duplicate files 55/273055/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.110308 accepted/tizen/unified/20220608.140030 submit/tizen/20220607.061719 tizen_7.0_m2_release
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 30 Mar 2022 06:03:35 +0000 (15:03 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 30 Mar 2022 06:11:34 +0000 (15:11 +0900)
Change-Id: I25a3010f7e3b8f76deccbfa44ac08966b9fc8441

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

index c60e6a9..90782ff 100755 (executable)
@@ -802,7 +802,7 @@ char *get_full_path_avoided_duplication(const char *in_dir,
        int extension_len = 0;
 
        int suffix_count = 0;   /* means suffix on file name. up to "_99" */
-       int suffix_len = (int)log10(MAX_SUFFIX_COUNT + 1) + 1;  /* 1 means "_" */
+       int suffix_len = (int)log10(MAX_SUFFIX_COUNT + 1) + 2;  /* 2 means "()" */
 
        if (!in_dir || !in_candidate_file_name)
                return DA_NULL;
@@ -844,7 +844,7 @@ char *get_full_path_avoided_duplication(const char *in_dir,
                                                "%s/%s", dir, file_name);
                        } else {
                                snprintf(final_path, final_path_len,
-                                               "%s/%s_%d", dir, file_name, suffix_count);
+                                               "%s/%s(%d)", dir, file_name, suffix_count);
                        }
                } else {
                        if (suffix_count == 0) {
@@ -852,7 +852,7 @@ char *get_full_path_avoided_duplication(const char *in_dir,
                                                "%s/%s.%s", dir, file_name, extension);
                        } else {
                                snprintf(final_path, final_path_len,
-                                               "%s/%s_%d.%s",
+                                               "%s/%s(%d).%s",
                                                dir, file_name, suffix_count, extension);
                        }
                }
index e000cd0..8503c2c 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.3.3
+Version:    2.3.4
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0