Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mergerepo_c.c')
-rw-r--r--src/mergerepo_c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mergerepo_c.c b/src/mergerepo_c.c
index 0e41890..34f21c9 100644
--- a/src/mergerepo_c.c
+++ b/src/mergerepo_c.c
@@ -1679,7 +1679,9 @@ dump_merged_metadata(GHashTable *merged_hashtable,
g_debug("Skip move of: %s -> %s (the destination file already exists)",
full_path, new_full_path);
g_debug("Removing: %s", full_path);
- g_remove(full_path);
+ if (g_remove(full_path) == -1) {
+ g_warning("Cannot remove %s: %s", full_path, g_strerror(errno));
+ }
g_free(full_path);
g_free(new_full_path);
continue;