@@ -518,7 +518,7 @@ def iter_available(
518
518
AND (:edition IS NULL OR edition=:edition)
519
519
AND (
520
520
CASE
521
- WHEN :version='latest'
521
+ WHEN :version='latest-release '
522
522
THEN 1
523
523
WHEN :version='latest-stable'
524
524
THEN mdb_version_not_rc(version)
@@ -804,7 +804,7 @@ def _latest_build_url(
804
804
if "rhel" in target :
805
805
# Some RHEL targets include a minor version, like "rhel93". Check the URL of the latest release.
806
806
latest_release_url = _published_build_url (
807
- cache , "latest" , target , arch , edition , component
807
+ cache , "latest-release " , target , arch , edition , component
808
808
)
809
809
got = re .search (r"rhel[0-9][0-9]" , latest_release_url )
810
810
if got is not None :
@@ -835,7 +835,7 @@ def _dl_component(
835
835
latest_build_branch : "str|None" ,
836
836
) -> ExpandResult :
837
837
LOGGER .info (f"Download { component } { version } -{ edition } for { target } -{ arch } " )
838
- if version == "latest-build" :
838
+ if version in ( "latest-build" , "latest" ) :
839
839
dl_url = _latest_build_url (
840
840
cache , target , arch , edition , component , latest_build_branch
841
841
)
@@ -845,13 +845,13 @@ def _dl_component(
845
845
cache , version , target , arch , edition , component
846
846
)
847
847
except ValueError :
848
- if component == "crypt_shared" and version != "latest" :
848
+ if component == "crypt_shared" and version != "latest-release " :
849
849
warnings .warn (
850
- "No matching version of crypt_shared found, using 'latest'" ,
850
+ "No matching version of crypt_shared found, using 'latest-release '" ,
851
851
stacklevel = 2 ,
852
852
)
853
- version = "latest"
854
- # The target will be macos on latest.
853
+ version = "latest-release "
854
+ # The target will be macos on latest-release .
855
855
if target == "osx" :
856
856
target = "macos"
857
857
else :
@@ -1086,12 +1086,12 @@ def main(argv=None):
1086
1086
dl_grp .add_argument (
1087
1087
"--version" ,
1088
1088
"-V" ,
1089
- default = "latest" ,
1090
- help = 'The product version to download. Use "latest" to download '
1089
+ default = "latest-build " ,
1090
+ help = 'The product version to download. Use "latest-release " to download '
1091
1091
"the newest available version (including release candidates). Use "
1092
1092
'"latest-stable" to download the newest version, excluding release '
1093
1093
'candidates. Use "rapid" to download the latest rapid release. '
1094
- ' Use "latest-build" to download the most recent build of '
1094
+ ' Use "latest-build" or "latest" to download the most recent build of '
1095
1095
'the named component. Use "--list" to list available versions.' ,
1096
1096
)
1097
1097
dl_grp .add_argument (
0 commit comments