str_ends_with: add a new util function
modified libpkg/pkg_solve.c
@@ -672,6 +672,7 @@ pkg_solve_process_universe_variable(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/private/utils.h
@@ -118,5 +118,6 @@ void append_random_suffix(char *buf, int buflen, int suffixlen);
|
|
|
|
|
|
| + | |
|
|
|
modified libpkg/utils.c
@@ -1019,3 +1019,20 @@ c_charv_contains(c_charv_t *v, const char *el, bool casesensitive)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified tests/lib/utils.c
@@ -35,6 +35,7 @@ ATF_TC_WITHOUT_HEAD(random_suffix);
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -126,6 +127,14 @@ ATF_TC_BODY(get_http_auth, tc) {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -133,6 +142,7 @@ ATF_TP_ADD_TCS(tp)
|
|
|
|
|
|
| + | |
|
|
|
|
|