From: Magnus Jacobsson Date: Wed, 21 Oct 2020 15:05:12 +0000 (+0200) Subject: Add removal of old graphviz version before install on RPM systems X-Git-Tag: 2.46.0~20^2^2~13^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47ece013b1d6bf391c83dbe33283247ae38c81df;p=graphviz Add removal of old graphviz version before install on RPM systems --- diff --git a/ci/install-packages.sh b/ci/install-packages.sh index 1f0499e98..e797022a3 100755 --- a/ci/install-packages.sh +++ b/ci/install-packages.sh @@ -68,6 +68,18 @@ if [ "${ID}" = "Darwin" ]; then /usr/local/bin/twopi \ /usr/local/bin/unflatten \ /usr/local/bin/vimdot +elif [ "${ID}" = "centos" -o "${ID}" = "fedora" ]; then + # Both doxgen and asciidoc depend on graphviz and needs to be + # removed to allow Graphviz to be removed + if rpm -q doxygen; then + rpm --erase doxygen + fi + if rpm -q asciidoc; then + rpm --erase asciidoc + fi + if rpm -q graphviz; then + rpm --erase graphviz + fi fi if [ "${build_system}" = "cmake" ]; then if [ "${ID_LIKE}" = "debian" ]; then