mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-17 06:45:05 -05:00
code cleanup
This commit is contained in:
parent
ad3baca0f4
commit
35e23b9554
@ -168,14 +168,14 @@ int remove_commit(pmtrans_t *trans, pmdb_t *db)
|
|||||||
for(lp = _alpm_list_last(info->files); lp; lp = lp->prev) {
|
for(lp = _alpm_list_last(info->files); lp; lp = lp->prev) {
|
||||||
int nb = 0;
|
int nb = 0;
|
||||||
char *file = lp->data;
|
char *file = lp->data;
|
||||||
char *md5 = _alpm_needbackup(lp->data, info->backup);
|
char *md5 = _alpm_needbackup(file, info->backup);
|
||||||
if(md5) {
|
if(md5) {
|
||||||
nb = 1;
|
nb = 1;
|
||||||
free(md5);
|
free(md5);
|
||||||
}
|
}
|
||||||
if(!nb && trans->type == PM_TRANS_TYPE_UPGRADE) {
|
if(!nb && trans->type == PM_TRANS_TYPE_UPGRADE) {
|
||||||
/* check noupgrade */
|
/* check noupgrade */
|
||||||
if(pm_list_is_strin(lp->data, handle->noupgrade)) {
|
if(pm_list_is_strin(file, handle->noupgrade)) {
|
||||||
nb = 1;
|
nb = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user