mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
code factorization: take 2
This commit is contained in:
parent
bbb48a85f0
commit
c5aca9529f
@ -492,8 +492,8 @@ int sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **
|
||||
|
||||
/* figure out which one was requested in targets. If they both were,
|
||||
* then it's still an unresolvable conflict. */
|
||||
target = pm_list_is_strin(miss->depend.name, trans->targets);
|
||||
depend = pm_list_is_strin(miss->target, trans->targets);
|
||||
target = pm_list_is_strin(miss->target, trans->targets) ? miss->target : NULL;
|
||||
depend = pm_list_is_strin(miss->depend.name, trans->targets) ? miss->depend.name : NULL;
|
||||
if(depend && !target) {
|
||||
_alpm_log(PM_LOG_DEBUG, "%s is in the target list -- keeping it",
|
||||
miss->depend.name);
|
||||
|
Loading…
Reference in New Issue
Block a user