X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/55aafbb07904ca24390dd47ea960eae7cb2b909a..bfe0ea9b824dc057f07355a928ccb64ab68b6c57:/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