bin/xbps-install/transaction.c: fix -n (dry-run) output for removed pkgs.

This commit is contained in:
Juan RP 2013-03-11 12:12:03 +01:00
parent bc6aa52f33
commit 4d7c51c368

View File

@ -82,11 +82,11 @@ show_actions(prop_object_iterator_t iter)
while ((obj = prop_object_iterator_next(iter)) != NULL) { while ((obj = prop_object_iterator_next(iter)) != NULL) {
prop_dictionary_get_cstring_nocopy(obj, "transaction", &trans); prop_dictionary_get_cstring_nocopy(obj, "transaction", &trans);
prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
prop_dictionary_get_cstring_nocopy(obj, "architecture", &arch); printf("%s %s", pkgver, trans);
printf("%s %s %s", pkgver, arch, trans);
prop_dictionary_get_cstring_nocopy(obj, "repository", &repoloc); prop_dictionary_get_cstring_nocopy(obj, "repository", &repoloc);
if (repoloc) prop_dictionary_get_cstring_nocopy(obj, "architecture", &arch);
printf(" %s", repoloc); if (repoloc && arch)
printf(" %s %s", arch, repoloc);
printf("\n"); printf("\n");
} }