Skip to content

Error 301: www.archlinux.org redirects to archlinux.org #153

@nheir

Description

@nheir

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);
}

package-query/src/util.c

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions