xbps-bin: dry-run: add binary pkg filename prop to the output.

This commit is contained in:
Juan RP
2012-02-05 14:56:18 +01:00
parent 3afa3ba93b
commit 36ae5709e4
2 changed files with 7 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ static void
show_actions(prop_object_iterator_t iter)
{
prop_object_t obj;
const char *repoloc, *trans, *pkgname, *version;
const char *repoloc, *trans, *pkgname, *version, *fname;
while ((obj = prop_object_iterator_next(iter)) != NULL) {
prop_dictionary_get_cstring_nocopy(obj, "transaction", &trans);
@@ -76,7 +76,11 @@ show_actions(prop_object_iterator_t iter)
printf("%s %s %s", pkgname, trans, version);
if (prop_dictionary_get_cstring_nocopy(obj,
"repository", &repoloc))
printf(" %s", repoloc);
printf(" %s ", repoloc);
if (prop_dictionary_get_cstring_nocopy(obj,
"filename", &fname))
printf("%s", fname);
printf("\n");
}
}