diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-01-19 00:45:12 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-01-19 00:45:12 +0000 |
commit | ac2da34a3accea357796d799fe62dae3425954e6 (patch) | |
tree | ef464f64351af49e58746f74e8e6a930d873f9a6 /subr/pkg_install_rpm.subr | |
parent | fabd5096c5665fdec8cdf3af0c70499f6670bda1 (diff) | |
download | midipix_build-ac2da34a3accea357796d799fe62dae3425954e6.tar.bz2 midipix_build-ac2da34a3accea357796d799fe62dae3425954e6.tar.xz |
subr/pkg_install.subr:pkg_install(): fix typo.
subr/pkg_install_rpm.subr:pkg_install_rpm(): reintroduce rpmbuild check.
Diffstat (limited to 'subr/pkg_install_rpm.subr')
-rw-r--r-- | subr/pkg_install_rpm.subr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subr/pkg_install_rpm.subr b/subr/pkg_install_rpm.subr index 856370d0..cd920eb6 100644 --- a/subr/pkg_install_rpm.subr +++ b/subr/pkg_install_rpm.subr @@ -5,7 +5,8 @@ pkg_install_rpm() { local _pkg_url="" _pkg_version_full="" _pkg_version_rpm=""; if [ "${ARG_RPM:-0}" -eq 0 ]\ - || [ "${PKG_RPM_DISABLE:-0}" -eq 1 ]; then + || [ "${PKG_RPM_DISABLE:-0}" -eq 1 ]\ + || ! [ -x "$(which rpmbuild 2>/dev/null)" ]; then return 0; fi; if [ -n "${PKG_URL}" ]; then |