mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 10:03:08 +02:00
Pmodules/libpbuild.bash
- find_tarball() download if not locally available and SOURCE_URL is set
This commit is contained in:
+10
-2
@@ -217,8 +217,16 @@ find_tarball() {
|
||||
done
|
||||
done
|
||||
done
|
||||
std::error "${name}/${version}: source not found."
|
||||
exit 43
|
||||
if [[ -z "${SOURCE_URL}" ]]; then
|
||||
std::error "${name}/${version}: source not found."
|
||||
exit 43
|
||||
fi
|
||||
wget --directory-prefix="${PMODULES_DISTFILESDIR}" "${SOURCE_URL}"
|
||||
if (( $? != 0 )); then
|
||||
std::error "${name}/${version}: cannot download source."
|
||||
exit 43
|
||||
fi
|
||||
echo "${PMODULES_DISTFILESDIR}/${SOURCE_URL##*/}"
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user