[pacman-dev] CVS update of pacman-lib/lib/libalpm (deps.c)
Aaron Griffin
aaron at archlinux.org
Mon Mar 12 01:55:14 EDT 2007
Date: Monday, March 12, 2007 @ 01:55:14
Author: aaron
Path: /home/cvs-pacman/pacman-lib/lib/libalpm
Modified: deps.c (1.78 -> 1.79)
* 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)
--------+
deps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: pacman-lib/lib/libalpm/deps.c
diff -u pacman-lib/lib/libalpm/deps.c:1.78 pacman-lib/lib/libalpm/deps.c:1.79
--- pacman-lib/lib/libalpm/deps.c:1.78 Sun Mar 11 17:10:03 2007
+++ pacman-lib/lib/libalpm/deps.c Mon Mar 12 01:55:14 2007
@@ -535,7 +535,7 @@
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 @@
}
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));
More information about the pacman-dev
mailing list