[MacPorts] #70055: Download links: Add computer friendly links
MacPorts
noreply at macports.org
Wed May 22 13:25:20 UTC 2024
#70055: Download links: Add computer friendly links
-----------------------------+---------------------
Reporter: bll123 | Owner: admin@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: server/hosting | Version:
Keywords: github download | Port:
-----------------------------+---------------------
The download release files are currently named with the user-friendly
names such as ''MacPorts-2.9.3-14-Sonoma.pkg''.
For scripts that automate the download of MacPorts, this is a problem, as
the MacOS version number must be mapped to the MacOS release name. e.g.
I have in my shell script version checks such as:
{{{
14*)
mp_os_nm=Sonoma
mp_os_vers=14
;;
}}}
And as far as I know, there's no easy way to get this name from the MacOS
operating system.
The script will currently fail to download MacPorts for version 15 of
MacOS (when it is released) unless I update it.
I don't know if the github releases supports symlinks, but it would be
useful to have names that exclude the user-friendly portion so that
scripts could locate the download file easier without having to update the
script for every new release of MacOS.
**Pros:**
Good for automatic retrieval.
**Cons:**
Makes the list of releases much longer.
It is unknown how useful this is. Many downloads are done manually.
**Alternatives:**
A version to name text file could be made available in the releases
download directory so that an automated script could look up the version
names. This would be easy, but requires some maintenance for each release
of MacOS.
--
Ticket URL: <https://trac.macports.org/ticket/70055>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list