diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-11 14:26:09 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-12 12:14:40 -0400 |
| commit | 25d3ab8e6524697ab3f2972f6dba1fbe26fcb0ec (patch) | |
| tree | e524e09405ea3956b9838e03b0c46e9b0575f631 /src/sisudoc/spine.d | |
| parent | ocda: the images an artefact carries, and the ones it only describes (diff) | |
spine: a .ocda.db can be fetched, as a pod zip can
A URL ending in .ocda.db is now downloaded and processed in place,
through the path that already did it for .zip: the same curl call, the
same size and timeout limits, the same refusal of local and private
addresses, the same --allow-downloads guard, the same temp file cleanup.
Only the pattern had to widen.
rgx_url_zip ^https?://...[.]zip$
rgx_url_source ^https?://...([.]zip|[.]ocda[.]db)$
downloadZipUrl is no downloadSourceUrl and the download temp directory
is spine-download rather than spine-zip-pod; (the extraction directory
keeps its name, being still only for zips).
(assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/spine.d')
| -rw-r--r-- | src/sisudoc/spine.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sisudoc/spine.d b/src/sisudoc/spine.d index 2ce9331..2bce8e0 100644 --- a/src/sisudoc/spine.d +++ b/src/sisudoc/spine.d @@ -1000,7 +1000,7 @@ string program_name = "spine"; string[] _resolved_args; foreach (arg; args[1..$]) { if (isUrl(arg)) { - auto _dlr = downloadZipUrl(arg); + auto _dlr = downloadSourceUrl(arg); if (_dlr.ok) { _url_downloads ~= _dlr; _resolved_args ~= _dlr.local_path; |
