summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-11-21 11:39:44 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-11-21 11:39:44 +0000
commit12edc80ba7f4a46c7efbc2d87c9b9c7e2c7d7835 (patch)
treeb2cc838e70fb7dfdf6f2e61bebc8443f139d1489
parent0525dff18e19b7354f8e86a0722dceb1f1dfab85 (diff)
downloadmidipix_build-12edc80ba7f4a46c7efbc2d87c9b9c7e2c7d7835.tar.bz2
midipix_build-12edc80ba7f4a46c7efbc2d87c9b9c7e2c7d7835.tar.xz
subr/pkg_install_rpm.subr: ignore all but first ${PKG_URL} if list.
-rw-r--r--subr/pkg_install_rpm.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/subr/pkg_install_rpm.subr b/subr/pkg_install_rpm.subr
index c0ba3e5e..776034b2 100644
--- a/subr/pkg_install_rpm.subr
+++ b/subr/pkg_install_rpm.subr
@@ -8,7 +8,7 @@ pkg_install_rpm() {
&& [ "${PKG_RPM_DISABLE:-0}" -eq 0 ]\
&& [ -x "$(which rpmbuild 2>/dev/null)" ]; then
if [ -n "${PKG_URL:-}" ]; then
- _pkg_url="${PKG_URL}"; _pkg_version_full="${PKG_VERSION}"; _pkg_version_rpm="${PKG_VERSION%%-*}";
+ _pkg_url="${PKG_URL%% *}"; _pkg_version_full="${PKG_VERSION}"; _pkg_version_rpm="${PKG_VERSION%%-*}";
elif [ -n "${PKG_URLS_GIT:-}" ]; then
_pkg_version_rpm="$(cd "${PKG_BASE_DIR}/${PKG_SUBDIR}" && git rev-parse HEAD)";
_pkg_version_full="${_pkg_version_rpm} ($(cd "${PKG_BASE_DIR}/${PKG_SUBDIR}" && git rev-parse --abbrev-ref HEAD))";