summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-01-23 17:05:21 +0100
committerAaron Griffin <aaron@archlinux.org>2007-01-23 17:05:21 +0100
commit8b11dd50ebcc95f4bd4a9ae5e0090d27a10be8f2 (patch)
tree034cb96bf117f619ec08c9e5dc8499446b929ea7
parent0e0738617b1909dff1460d9618133a04d9806514 (diff)
downloadpacman-8b11dd50ebcc95f4bd4a9ae5e0090d27a10be8f2.tar.gz
pacman-8b11dd50ebcc95f4bd4a9ae5e0090d27a10be8f2.tar.xz
James Rosten <seinfeld90@gmail.com>
* attempt to unlink file AFTER moving to .pacsave always fails
-rw-r--r--lib/libalpm/remove.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index e340dfc3..9896453f 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -225,9 +225,10 @@ static void unlink_file(pmpkg_t *info, alpm_list_t *lp, alpm_list_t *targ,
int list_count = alpm_list_count(trans->packages); /* this way we don't have to call alpm_list_count twice during PROGRESS */
PROGRESS(trans, PM_TRANS_PROGRESS_REMOVE_START, info->name, (double)(percent * 100), list_count, (list_count - alpm_list_count(targ) + 1));
++(*position);
- }
- if (unlink(line) == -1) {
- _alpm_log(PM_LOG_ERROR, _("cannot remove file %s: %s"), file, strerror(errno));
+
+ if (unlink(line) == -1) {
+ _alpm_log(PM_LOG_ERROR, _("cannot remove file %s: %s"), file, strerror(errno));
+ }
}
}
}