1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-04 08:35:07 -05:00

James Rosten <seinfeld90@gmail.com>

* attempt to unlink file AFTER moving to .pacsave always fails
This commit is contained in:
Aaron Griffin 2007-01-23 16:05:21 +00:00
parent 0e0738617b
commit 8b11dd50eb

View File

@ -225,12 +225,13 @@ 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 */ 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)); PROGRESS(trans, PM_TRANS_PROGRESS_REMOVE_START, info->name, (double)(percent * 100), list_count, (list_count - alpm_list_count(targ) + 1));
++(*position); ++(*position);
}
if (unlink(line) == -1) { if (unlink(line) == -1) {
_alpm_log(PM_LOG_ERROR, _("cannot remove file %s: %s"), file, strerror(errno)); _alpm_log(PM_LOG_ERROR, _("cannot remove file %s: %s"), file, strerror(errno));
} }
} }
} }
}
} }
int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db) int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db)