code cleanup

This commit is contained in:
Aurelien Foret 2006-02-05 09:23:28 +00:00
parent ad3baca0f4
commit 35e23b9554
1 changed files with 2 additions and 2 deletions

View File

@ -168,14 +168,14 @@ int remove_commit(pmtrans_t *trans, pmdb_t *db)
for(lp = _alpm_list_last(info->files); lp; lp = lp->prev) {
int nb = 0;
char *file = lp->data;
char *md5 = _alpm_needbackup(lp->data, info->backup);
char *md5 = _alpm_needbackup(file, info->backup);
if(md5) {
nb = 1;
free(md5);
}
if(!nb && trans->type == PM_TRANS_TYPE_UPGRADE) {
/* check noupgrade */
if(pm_list_is_strin(lp->data, handle->noupgrade)) {
if(pm_list_is_strin(file, handle->noupgrade)) {
nb = 1;
}
}