Current redirection prevents package-query to get out-of-date info
|
#define ARCH_PACKAGES_URL "https://www.archlinux.org/packages/" |
|
char *res = curl_fetch (curl, url); |
|
if (res) { |
|
char *f = strstr (res, OUTOFDATE_FLAG); |
|
if (f && strncmp (f + strlen (OUTOFDATE_FLAG), "null", strlen ("null")) != 0) { |
|
flagged = true; |
|
} |
|
free (res); |
|
} |
|
if (http_code != 200) { |
|
fprintf(stderr, "The URL %s returned error : %ld\n", url, http_code); |
|
string_free (res); |
|
return NULL; |
|
} |
Current redirection prevents
package-queryto get out-of-date infopackage-query/src/alpm-query.c
Line 31 in 9160ff6
package-query/src/alpm-query.c
Lines 517 to 524 in 9160ff6
package-query/src/util.c
Lines 1137 to 1141 in 9160ff6