From 4d7c51c3682719cf441b652656dcbd792e90b18a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 Mar 2013 12:12:03 +0100 Subject: [PATCH] bin/xbps-install/transaction.c: fix -n (dry-run) output for removed pkgs. --- bin/xbps-install/transaction.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/xbps-install/transaction.c b/bin/xbps-install/transaction.c index f7cb3f4d..6afcad44 100644 --- a/bin/xbps-install/transaction.c +++ b/bin/xbps-install/transaction.c @@ -82,11 +82,11 @@ show_actions(prop_object_iterator_t iter) while ((obj = prop_object_iterator_next(iter)) != NULL) { prop_dictionary_get_cstring_nocopy(obj, "transaction", &trans); prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); - prop_dictionary_get_cstring_nocopy(obj, "architecture", &arch); - printf("%s %s %s", pkgver, arch, trans); + printf("%s %s", pkgver, trans); prop_dictionary_get_cstring_nocopy(obj, "repository", &repoloc); - if (repoloc) - printf(" %s", repoloc); + prop_dictionary_get_cstring_nocopy(obj, "architecture", &arch); + if (repoloc && arch) + printf(" %s %s", arch, repoloc); printf("\n"); }