xbps-repo(8): the 'show-deps' target only lists deps and not repo/pkgver.

This commit is contained in:
Juan RP 2012-08-10 08:43:51 +02:00
parent c34e564327
commit 2e594caf8a
2 changed files with 5 additions and 10 deletions

7
NEWS
View File

@ -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 * 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 * xbps-repo(8): a new target has been added: 'remove-obsoletes'. This removes
obsolete packages found in a local repository; obsoletes are packages not obsolete packages found in a local repository; obsoletes are packages not

View File

@ -63,8 +63,6 @@ show_pkg_info_from_repolist(struct xbps_handle *xhp,
else else
show_pkg_info(pkgd); show_pkg_info(pkgd);
prop_object_release(pkgd);
return 0; return 0;
} }
@ -72,7 +70,6 @@ int
show_pkg_deps_from_repolist(struct xbps_handle *xhp, const char *pattern) show_pkg_deps_from_repolist(struct xbps_handle *xhp, const char *pattern)
{ {
prop_dictionary_t pkgd; prop_dictionary_t pkgd;
const char *ver, *repoloc;
if (xbps_pkgpattern_version(pattern)) if (xbps_pkgpattern_version(pattern))
pkgd = xbps_rpool_find_pkg(xhp, pattern, true, false); 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) if (pkgd == NULL)
return errno; 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, (void)xbps_callback_array_iter_in_dict(xhp, pkgd,
"run_depends", list_strings_sep_in_array, NULL); "run_depends", list_strings_sep_in_array, NULL);
prop_object_release(pkgd);
return 0; return 0;
} }