Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-01 19:12:09 -0600
committerDan McGee <dan@archlinux.org>2008-01-01 20:03:24 -0600
commitd18686a5637c50a8229a0a280f81a1eb9ec34ed0 (patch)
tree079ddfe6ca562a78df2486ba8c6e12ce8cd0d3ca
parentac0605b9c27bf206c99bd73302efeff3ce79797e (diff)
Switch pkg_new -> pkg_dup in find_replacements
Ugh, it was a pain to figure out why the Total Removed Size was showing up wrong in the output of removed packages, but this was why- we used a stupid _alpm_pkg_new call instead of just duping the package. Fix this. In the long run, we really need to figure out better ways to not duplicate all this package information. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 22df9bf5..224f5676 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -147,7 +147,7 @@ static int find_replacements(pmtrans_t *trans, pmdb_t *db_local,
* the package to replace.
*/
pmsyncpkg_t *sync;
- pmpkg_t *dummy = _alpm_pkg_new(alpm_pkg_get_name(lpkg), NULL);
+ pmpkg_t *dummy = _alpm_pkg_dup(lpkg);
if(dummy == NULL) {
pm_errno = PM_ERR_MEMORY;
synclist_free(*syncpkgs);