From eb7e8ed2a0fb12b4bcf20a748aead14e2cf4f28d Mon Sep 17 00:00:00 2001 From: ngn Date: Thu, 22 Aug 2024 00:14:13 +0300 Subject: [PATCH] fix: don't remove local packages after install fixes #4 --- locale/tr/LC_MESSAGES/libmp.po | 2 +- src/ctx/install.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index d395b62..7f6f344 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-16 06:47+0300\n" +"POT-Creation-Date: 2024-08-22 00:11+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/ctx/install.c b/src/ctx/install.c index 9d665a4..73728e5 100644 --- a/src/ctx/install.c +++ b/src/ctx/install.c @@ -384,7 +384,10 @@ end: lm_database_files_del(ctx->db, &pkg->data); } - unlink(pkg->archive); - unlink(pkg->signature); + if (pkg->pool != NULL){ + unlink(pkg->archive); + unlink(pkg->signature); + } + return ret; }