-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Current redirection prevents package-query to get out-of-date info
package-query/src/alpm-query.c
Line 31 in 9160ff6
| #define ARCH_PACKAGES_URL "https://www.archlinux.org/packages/" |
package-query/src/alpm-query.c
Lines 517 to 524 in 9160ff6
| 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); | |
| } |
Lines 1137 to 1141 in 9160ff6
| if (http_code != 200) { | |
| fprintf(stderr, "The URL %s returned error : %ld\n", url, http_code); | |
| string_free (res); | |
| return NULL; | |
| } |
Metadata
Metadata
Assignees
Labels
No labels