xbps-repo: use list_strings_sep_in_array() for 'list' target.
--HG-- extra : convert_revision : 0f06fdb6172b0ef8e55af44037166508c4c9996b
This commit is contained in:
parent
6ff28f6d79
commit
1a26816aa3
3 changed files with 3 additions and 3 deletions
|
@ -229,7 +229,7 @@ main(int argc, char **argv)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
(void)xbps_callback_array_iter_in_repolist(
|
(void)xbps_callback_array_iter_in_repolist(
|
||||||
list_strings_in_array, NULL);
|
list_strings_sep_in_array, NULL);
|
||||||
|
|
||||||
} else if ((strcasecmp(argv[0], "rm") == 0) ||
|
} else if ((strcasecmp(argv[0], "rm") == 0) ||
|
||||||
(strcasecmp(argv[0], "remove") == 0)) {
|
(strcasecmp(argv[0], "remove") == 0)) {
|
||||||
|
|
|
@ -42,7 +42,6 @@ struct show_files_cb {
|
||||||
static void show_pkg_info(prop_dictionary_t);
|
static void show_pkg_info(prop_dictionary_t);
|
||||||
static int show_pkg_files(prop_object_t, void *, bool *);
|
static int show_pkg_files(prop_object_t, void *, bool *);
|
||||||
static int show_pkg_namedesc(prop_object_t, void *, bool *);
|
static int show_pkg_namedesc(prop_object_t, void *, bool *);
|
||||||
static int list_strings_sep_in_array(prop_object_t, void *, bool *);
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_pkg_info(prop_dictionary_t dict)
|
show_pkg_info(prop_dictionary_t dict)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2008 Juan Romero Pardines.
|
* Copyright (c) 2008-2009 Juan Romero Pardines.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -31,5 +31,6 @@ int show_pkg_info_from_metadir(const char *);
|
||||||
int show_pkg_files_from_metadir(const char *, bool);
|
int show_pkg_files_from_metadir(const char *, bool);
|
||||||
int show_pkg_info_from_repolist(prop_object_t, void *, bool *);
|
int show_pkg_info_from_repolist(prop_object_t, void *, bool *);
|
||||||
int list_strings_in_array(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 *);
|
||||||
|
|
||||||
#endif /* !_XBPS_REPO_UTIL_H_ */
|
#endif /* !_XBPS_REPO_UTIL_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue