Comments (9)
So far it works only for *Current.iso, but I can add support for the same logic for GNOME*.iso , e.g.
curl -sI https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso | grep -i location
location: https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20230129-Media.iso
from mirrorcache.
Maybe using json output will resolve the issue?
https://download.opensuse.org/repositories/GNOME:/Medias/images/iso/?P=GNOME_Next*&json
from mirrorcache.
I wasn't aware how to find JSON routes. This looks helpful however the content is bigger than the checksum file so it would be less efficient to fetch that and compare in content. Also the "last-modified" approach would be more efficient
from mirrorcache.
So what last-modified
should refer to when using pattern or regex for file name? The max mtime of files that match the pattern / regex?
from mirrorcache.
So what
last-modified
should refer to when using pattern or regex for file name? The max mtime of files that match the pattern / regex?
I guess it could simply be the same "last-modified" of the complete page regardless of the filtering. So it would be like the "minimum mtime". The filtering would be applied on top.
from mirrorcache.
But then it will not be usable for monitoring for changes with file filter, because a change in the mtime may be related to some other files. Do I get it right?
from mirrorcache.
Another way may be to check for header response. For now it works only for mirrorcache.o.o , but I probably need to fix it for download.o.o as well the same way:
curl -Is https://mirrorcache.opensuse.org/repositories/GNOME:/Medias/images/iso/GNOME_Next.x86_64.iso | grep location
location: /repositories/GNOME:/Medias/images/iso/GNOME_Next.x86_64-43.2-Build23.9.iso
from mirrorcache.
FYI GNOME_Next now redirects to particular build - this may be good way to track changes:
curl -Is https://download.opensuse.org/repositories/GNOME:/Medias/images/iso/GNOME_Next.x86_64.iso | grep -I location
location: /repositories/GNOME:/Medias/images/iso/GNOME_Next.x86_64-43.2-Build23.34.iso
We can close the ticket or let it wait til there will be priority to provide something like mtime in response header.
from mirrorcache.
That looks good. But I don't think I can instruct jenkins to read just the head and the always-changing "csrf-token" as described in the original description still seems to be problematic.
from mirrorcache.
Related Issues (20)
- ISO download site repo.ugm.ac.id not accessible HOT 2
- outdated cache opensuse.mirror.ac.za HOT 3
- Something doubles the file extension (*.zsync => *.zsync.zsync) HOT 5
- chave invalida [ AJUDA SOU NOVATO DEBIAN12]
- cdn.opensuse.org returning 503 Backend is unhealthy HOT 2
- Debian_Testing Release' does not have a Release file. HOT 5
- Automated update checks fail if mirror not reachable or blocked due to company policy HOT 3
- If download from a given mirror fails try from another one and finally download from suse HOT 2
- Download not working snapd-2.61-1.1.x86_64.rpm HOT 3
- mirror.aardsoft.fi not up to date? HOT 3
- knot-resolver_5.7.0-cznic.1_amd64.deb and Packages, md5sum mismatch
- Slowroll repository is unpurged HOT 1
- Checksum error for repositories/Emulators/15.5 HOT 2
- openSUSE mirrors infrastructure outdated ? HOT 3
- The version 4.14.6 (xen-libs and xen-tools-domU) cannot be found in the openSUSE 15.3 repositories HOT 1
- Incorrect error handling running the Debian 11 version in Debian 12 HOT 2
- Missing http://download.opensuse.org/repositories/multimedia:/apps/15.4
- redirect to untrusted mirror.yandex.ru HOT 2
- Signature keys mismatch for php builds HOT 1
- Tumbleweed for all 3 ARMs & zsystem not being updated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirrorcache.