xbps-bin: dry-run: add binary pkg filename prop to the output.
This commit is contained in:
parent
3afa3ba93b
commit
36ae5709e4
2
NEWS
2
NEWS
@ -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'
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user