Updates Folders Organisation (suggestion)
Posted: 22 Mar 2025, 05:31
This is one mirror among many others, and all are presenting the same folder structure (as expected being mirrors)
http://www6.frugalware.org/mirrors/linu ... ates/core/
From a human point of having a component update 20250130/001-core.xzm is nicer than 001-core-20250130.xzm
Fortunately the updates.txt mitigate the "scripting" effort (aka the BOFH's WTF cast streaming). Unfortunately, it still not address at which point stop searching for updates because from name files or even the entire path, it is not known the ISO date. Which can be retrieved by other information. So, to take a decision the script needs to compare more source of information.
Is it a problem? Yes it is. How this problem has been resolved for the ISO/distro files? Adding versioning in the path *AND* creating main 3 levels: archive (old), current (latest stable), testing (on the edge).
So, my suggestion is to add a folder named "current" also in every place where updates.txt exists. In that folder all the components (eg. 001-core-.xzm, 002-xorg.xzm) are linked. Obviously, this extra folder do not increase the size of the repository because the files are NOT duplicated but linked (also in Posix-compliant filesystem, links exists at filesystem-internals level).
Advantages? We can wget-ting the whole folder without have to takes decision because ALL latest updates are in THAT place. While others places are fine for humans, keep tracks, etc. Moreover, it is a simple straightforward change that change everything!
http://www6.frugalware.org/mirrors/linu ... ates/core/
From a human point of having a component update 20250130/001-core.xzm is nicer than 001-core-20250130.xzm
Code: Select all
Index of /mirrors/linux/porteus/x86_64/current/updates/core/
../
20230930/ 03-Oct-2023 10:52 -
20231228/ 30-Dec-2023 06:36 -
20240229/ 03-Mar-2024 06:16 -
20240428/ 04-May-2024 08:01 -
20240510/ 11-May-2024 07:36 -
20240801/ 04-Aug-2024 03:35 -
20240923/ 24-Sep-2024 12:31 -
20241211/ 17-Dec-2024 16:00 -
20250130/ 01-Feb-2025 06:48 -
updates.txt 01-Feb-2025 06:48 2564
Is it a problem? Yes it is. How this problem has been resolved for the ISO/distro files? Adding versioning in the path *AND* creating main 3 levels: archive (old), current (latest stable), testing (on the edge).
Code: Select all
Index of /mirrors/linux/porteus/x86_64/
../
Porteus-v3.2/ 28-Apr-2018 21:29 -
Porteus-v3.2.2/ 28-Apr-2018 21:29 -
Porteus-v4.0/ 16-Jun-2018 21:07 -
Porteus-v5.0/ 05-Jul-2022 07:58 -
Porteus-v5.01/ 20-May-2024 07:56 -
Porteus-v5.1/ 03-Jan-2025 09:48 -
archive/ 06-Jul-2021 18:50 -
current/ 20-May-2024 07:56 -
kernel/ 13-May-2018 14:17 -
testing/ 11-Dec-2017 02:52 -
Advantages? We can wget-ting the whole folder without have to takes decision because ALL latest updates are in THAT place. While others places are fine for humans, keep tracks, etc. Moreover, it is a simple straightforward change that change everything!
