X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f644e242ef37c911ad3dc25aca8135c339de349..bbc1590401a1d15a4ca101df37415c9a2aa99ac9:/build/go-python-package-scripts/postinst diff --git a/build/go-python-package-scripts/postinst b/build/go-python-package-scripts/postinst index 6d303f2e3e..ab2568ab9b 100755 --- a/build/go-python-package-scripts/postinst +++ b/build/go-python-package-scripts/postinst @@ -5,7 +5,9 @@ set -e -if [ "%{name}" != "%\{name\}" ]; then +# Detect rpm-based systems: the exit code of the following command is zero +# on rpm-based systems +if /usr/bin/rpm -q -f /usr/bin/rpm >/dev/null 2>&1; then # Red Hat ("%{...}" is interpolated at package build time) pkg="%{name}" pkgtype=rpm