mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Support file:// mirrors
Spawns a simple HTTP server to host the mirror. Useful for testing mirror support or CI in chroot or bwrap modes.
This commit is contained in:
parent
ce1522db64
commit
7d50a224c6
4 changed files with 59 additions and 10 deletions
|
|
@ -37,8 +37,13 @@ download_source() {
|
|||
check_source() {
|
||||
local distfiles="${1}"
|
||||
local url="${2}"
|
||||
local checksum="${3}"
|
||||
local fname="${4}"
|
||||
shift 2
|
||||
if [[ "${url}" == git://* ]]; then
|
||||
url="${1}"
|
||||
shift
|
||||
fi
|
||||
local checksum="${1}"
|
||||
local fname="${2}"
|
||||
# Default to basename of url if not given
|
||||
fname="${fname:-$(basename "${url}")}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue