Improvements for xbps-{bin,repo}.

- Indent properly with the longest "pkgver" object while listing or searching
  for packages.
- Also match strings in the short description object while searching for
  packages in xbps_repo.
This commit is contained in:
Juan RP
2010-11-24 16:37:30 +01:00
parent d2be842ce5
commit 940e077fb4
5 changed files with 100 additions and 20 deletions

View File

@ -41,5 +41,11 @@ void show_pkg_info_only_repo(prop_dictionary_t);
int show_pkg_namedesc(prop_object_t, void *, bool *);
int list_strings_in_array(prop_object_t, void *, bool *);
int list_strings_sep_in_array(prop_object_t, void *, bool *);
size_t find_longest_pkgver(prop_dictionary_t);
struct repo_search_data {
char *pattern;
size_t pkgver_len;
};
#endif /* !_XBPS_REPO_DEFS_H_ */