Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Use is_authenticated as an attribute.
|
|
mirrors: Allow listing mirrors in only a specific tier
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
This fixes a regression. Originally request.REQUEST was used, but django
1.9 removed this. In its stead, request.POST was used unconditionally.
However, this results in any GET request returning *all* mirrors, rather
than filtering as requested in the parameters.
This patch uses POST or GET based on the request method. This fixes the
behavior of the [mirror-filter-form], and any scripts depending on the
generated URL format. Accordingly, make test_mirrorlist_filter() test
both the success and failure cases, rather than just success.
[mirror-filter-form]: https://www.archlinux.org/mirrorlist/
Signed-off-by: Genki Sky <sky@genki.is>
|
|
Replace request.REQUEST with request.POST.
|
|
Add the ipv4/ipv6 availability to the /mirrors/status/json api.
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
* Add mirror detail URLs to JSON output
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Bump mirror details JSON version to 4
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Users may use the returned mirror list as-is without sorting it
themselves. This may lead to the first mirror in the list being
overloaded. Prevent this by not returning a sorted list.
References: https://lists.archlinux.org/pipermail/arch-dev-public/2017-January/028681.html
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Angel Velasquez <angvp@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We'll start splitting these up as we did in packages/.
Signed-off-by: Dan McGee <dan@archlinux.org>
|