mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-08-10 05:00:30 +02:00
modubuild: defining a source URL is now optional
This commit is contained in:
@@ -454,7 +454,7 @@ pbuild::prep() {
|
|||||||
"error patching sources!"
|
"error patching sources!"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
if [[ -z "${SOURCE_URLS}" ]]; then
|
if (( ${#SOURCE_URLS[@]} == 0 )); then
|
||||||
for fname in ${VERSIONS[@]/#/pbuild::set_download_url_}; do
|
for fname in ${VERSIONS[@]/#/pbuild::set_download_url_}; do
|
||||||
if typeset -F ${fname} 2>/dev/null; then
|
if typeset -F ${fname} 2>/dev/null; then
|
||||||
$f
|
$f
|
||||||
@@ -462,10 +462,6 @@ pbuild::prep() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
[[ -z "${SOURCE_URLS}" ]] && \
|
|
||||||
std::die 3 \
|
|
||||||
"%s " "${module_name}/${module_version}:" \
|
|
||||||
"Download source not set!"
|
|
||||||
mkdir -p "${PMODULES_DISTFILESDIR}"
|
mkdir -p "${PMODULES_DISTFILESDIR}"
|
||||||
local i=0
|
local i=0
|
||||||
local source_fname
|
local source_fname
|
||||||
|
|||||||
Reference in New Issue
Block a user