* Fix pacman -Se which installs depends only, as it was broken
(Is this useful to anyone?)
This commit is contained in:
parent
0fa7d47a4d
commit
9b08a5aa97
1 changed files with 11 additions and 5 deletions
|
@ -416,11 +416,17 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync
|
||||||
} else {
|
} else {
|
||||||
/* remove the original targets from the list if requested */
|
/* remove the original targets from the list if requested */
|
||||||
if((trans->flags & PM_TRANS_FLAG_DEPENDSONLY)) {
|
if((trans->flags & PM_TRANS_FLAG_DEPENDSONLY)) {
|
||||||
void *vp;
|
void *vpkg;
|
||||||
pmpkg_t *p;
|
pmsyncpkg_t *sync;
|
||||||
trans->packages = alpm_list_remove(trans->packages, spkg, _alpm_pkg_cmp, &vp);
|
const char *pkgname;
|
||||||
p = vp;
|
|
||||||
FREEPKG(p);
|
pkgname = alpm_pkg_get_name(spkg);
|
||||||
|
_alpm_log(PM_LOG_DEBUG, "removing package %s-%s from the transaction targets",
|
||||||
|
pkgname, alpm_pkg_get_version(spkg));
|
||||||
|
|
||||||
|
sync = _alpm_sync_find(trans->packages, pkgname);
|
||||||
|
trans->packages = alpm_list_remove(trans->packages, sync, syncpkg_cmp, &vpkg);
|
||||||
|
FREESYNC(vpkg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue