From 2e594caf8a185a9a598b5c019ff6f85f3fd34524 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 10 Aug 2012 08:43:51 +0200 Subject: [PATCH] xbps-repo(8): the 'show-deps' target only lists deps and not repo/pkgver. --- NEWS | 7 +++++-- bin/xbps-repo/show.c | 8 -------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/NEWS b/NEWS index 0e6fe155..f882b364 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,10 @@ -xbps-0.16.6 (???): +xbps-0.17 (???): + + * xbps-repo(8): the 'show-deps' target does not show the repository from + the matching target package, just the list of dependencies. * xbps-repo(8): the 'search' target now shows which packages are currently - installed through the '*' character as prefix in the results. + installed "[*]" or not installed "[-]". * xbps-repo(8): a new target has been added: 'remove-obsoletes'. This removes obsolete packages found in a local repository; obsoletes are packages not diff --git a/bin/xbps-repo/show.c b/bin/xbps-repo/show.c index 0b7faa5f..170b1bd5 100644 --- a/bin/xbps-repo/show.c +++ b/bin/xbps-repo/show.c @@ -63,8 +63,6 @@ show_pkg_info_from_repolist(struct xbps_handle *xhp, else show_pkg_info(pkgd); - prop_object_release(pkgd); - return 0; } @@ -72,7 +70,6 @@ int show_pkg_deps_from_repolist(struct xbps_handle *xhp, const char *pattern) { prop_dictionary_t pkgd; - const char *ver, *repoloc; if (xbps_pkgpattern_version(pattern)) pkgd = xbps_rpool_find_pkg(xhp, pattern, true, false); @@ -82,14 +79,9 @@ show_pkg_deps_from_repolist(struct xbps_handle *xhp, const char *pattern) if (pkgd == NULL) return errno; - prop_dictionary_get_cstring_nocopy(pkgd, "version", &ver); - prop_dictionary_get_cstring_nocopy(pkgd, "repository", &repoloc); - - printf("Repository %s [pkgver: %s]\n", repoloc, ver); (void)xbps_callback_array_iter_in_dict(xhp, pkgd, "run_depends", list_strings_sep_in_array, NULL); - prop_object_release(pkgd); return 0; }