xbps-{bin,repo}: new -o flag for the 'show' target, to print specific objs value.

This commit is contained in:
Juan RP
2011-10-29 08:17:54 +02:00
parent 549b5e2e36
commit 1c4d486396
11 changed files with 145 additions and 57 deletions

View File

@@ -35,7 +35,7 @@
#include "defs.h"
int
show_pkg_info_from_metadir(const char *pkgname)
show_pkg_info_from_metadir(const char *pkgname, const char *option)
{
prop_dictionary_t d;
@@ -43,7 +43,11 @@ show_pkg_info_from_metadir(const char *pkgname)
if (d == NULL)
return EINVAL;
show_pkg_info(d);
if (option == NULL)
show_pkg_info(d);
else
show_pkg_info_one(d, option);
prop_object_release(d);
return 0;
}