summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/sync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 9350793a..601f1d69 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -688,7 +688,13 @@ static int prompt_to_delete(alpm_handle_t *handle, const char *filepath,
};
QUESTION(handle, &question);
if(question.remove) {
+ char *sig_filepath;
+
unlink(filepath);
+
+ sig_filepath = _alpm_sigpath(handle, filepath);
+ unlink(sig_filepath);
+ FREE(sig_filepath);
}
return question.remove;
}