mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 11:55:12 -05:00
code cleanup
This commit is contained in:
parent
1704a00404
commit
540d3d49b2
@ -510,8 +510,7 @@ int sync_prepare(pmtrans_t *trans, pmdb_t *db_local, PMList *dbs_sync, PMList **
|
||||
for(l = trans->packages; l; l = l->next) {
|
||||
pmsyncpkg_t *s = l->data;
|
||||
if(!strcmp(s->pkg->name, miss->target)) {
|
||||
pmpkg_t *q = pkg_new(NULL, NULL);
|
||||
STRNCPY(q->name, miss->depend.name, PKG_NAME_LEN);
|
||||
pmpkg_t *q = pkg_new(miss->depend.name, NULL);
|
||||
if(s->type == PM_SYNC_TYPE_REPLACE) {
|
||||
/* append to the replaces list */
|
||||
s->data = pm_list_add(s->data, q);
|
||||
|
Loading…
Reference in New Issue
Block a user