mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
* Fixed an error with 'cascade' removal due to creation of a new pmpkg_t struct
(and thus not copying pertinent data w.r.t. reading package files)
This commit is contained in:
parent
0203fabe54
commit
5f15a80274
@ -535,7 +535,7 @@ alpm_list_t *_alpm_removedeps(pmdb_t *db, alpm_list_t *targs)
|
||||
for(k = provides; k; k = k->next) {
|
||||
pmpkg_t *provpkg = k->data;
|
||||
if(can_remove_package(db, provpkg, newtargs)) {
|
||||
pmpkg_t *pkg = _alpm_pkg_new(alpm_pkg_get_name(provpkg), alpm_pkg_get_version(provpkg));
|
||||
pmpkg_t *pkg = _alpm_pkg_dup(provpkg);
|
||||
|
||||
_alpm_log(PM_LOG_DEBUG, _("adding '%s' to the targets"), alpm_pkg_get_name(pkg));
|
||||
|
||||
@ -546,7 +546,7 @@ alpm_list_t *_alpm_removedeps(pmdb_t *db, alpm_list_t *targs)
|
||||
}
|
||||
FREELISTPTR(provides);
|
||||
} else if(can_remove_package(db, deppkg, newtargs)) {
|
||||
pmpkg_t *pkg = _alpm_pkg_new(deppkg->name, deppkg->version);
|
||||
pmpkg_t *pkg = _alpm_pkg_dup(deppkg);
|
||||
|
||||
_alpm_log(PM_LOG_DEBUG, _("adding '%s' to the targets"), alpm_pkg_get_name(pkg));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user