Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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