src/version.c: add proper return codes for package queries
modified src/version.c
@@ -80,51 +80,51 @@ static void
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -138,6 +138,7 @@ print_version(struct pkg *pkg, const char *source, const char *ver,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -379,8 +380,14 @@ have_indexfile(const char **indexfile, char *filebuf, size_t filebuflen,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -399,6 +406,7 @@ do_source_index(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -439,6 +447,10 @@ do_source_index(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -448,7 +460,7 @@ cleanup:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -465,8 +477,7 @@ do_source_remote(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -480,6 +491,8 @@ do_source_remote(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -493,10 +506,8 @@ do_source_remote(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
|
|
|
|
|
@@ -531,6 +542,10 @@ do_source_remote(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -716,6 +731,7 @@ do_source_ports(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -737,7 +753,7 @@ do_source_ports(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -758,6 +774,10 @@ do_source_ports(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -770,7 +790,7 @@ cleanup:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|