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

2
NEWS
View File

@ -5,7 +5,7 @@ xbps-0.12.0 (???):
autoremove, autoupdate, install, remove and update targets. Example:
$ xbps-bin -n install kernel-snapshot
kernel-snapshot install 3.3.0rc2 /mnt/xbps_builder/host/binpkgs/x86_64
<pkgname> <install|remove|update|configure> <version> <repository> <filename>
$
The format is "%s %s %s[ %s]\n" for `pkgname', `action', `version'

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");
}
}