From 47ece013b1d6bf391c83dbe33283247ae38c81df Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 21 Oct 2020 17:05:12 +0200 Subject: [PATCH] Add removal of old graphviz version before install on RPM systems --- ci/install-packages.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.40.0