Allow dev manifest selection when using non-releases URLs
This commit is contained in:
@@ -210,10 +210,11 @@ def fetch_manifest_for_channel(channel: str, with_meta: bool = False):
|
||||
try:
|
||||
parts = base_manifest_url.split("/")
|
||||
if "releases" not in parts:
|
||||
if manifest:
|
||||
return (manifest, {"version_dates": version_dates}) if with_meta else manifest
|
||||
mf = fetch_manifest(base_manifest_url)
|
||||
return (mf, {"version_dates": version_dates}) if with_meta else mf
|
||||
# No releases API for this URL; keep any fetched manifest and skip API discovery.
|
||||
releases = []
|
||||
if not manifest:
|
||||
manifest = fetch_manifest(base_manifest_url)
|
||||
else:
|
||||
idx = parts.index("releases")
|
||||
owner = parts[idx - 2]
|
||||
repo = parts[idx - 1]
|
||||
|
||||
Reference in New Issue
Block a user