From dfb45f27ef9052700b45497f5265c650a6f067a7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 4 Jul 2012 11:54:37 +0200 Subject: [PATCH] xbps_transaction_package_replace: misc cosmetic changes to dbg printfs. --- lib/transaction_package_replace.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/transaction_package_replace.c b/lib/transaction_package_replace.c index 8f36976a..962dd5c0 100644 --- a/lib/transaction_package_replace.c +++ b/lib/transaction_package_replace.c @@ -84,19 +84,16 @@ xbps_transaction_package_replace(struct xbps_handle *xhp) "pkgname", &curpkgname); prop_dictionary_get_cstring_nocopy(instd, "pkgver", &curpkgver); - xbps_dbg_printf(xhp, - "Package `%s' will be replaced by `%s', " - "matched with `%s'\n", curpkgver, pkgver, pattern); /* * Check that we are not replacing the same package, * due to virtual packages. */ - if (strcmp(pkgname, curpkgname) == 0) { - xbps_dbg_printf(xhp, - "replaced and new package " - "are equal (%s)\n", pkgname); + if (strcmp(pkgname, curpkgname) == 0) continue; - } + + xbps_dbg_printf(xhp, + "Package `%s' will be replaced by `%s', " + "matched with `%s'\n", curpkgver, pkgver, pattern); instd_reqby = prop_dictionary_get(instd, "requiredby"); instd_auto = false; prop_dictionary_get_bool(instd,