]> granicus.if.org Git - graphviz/commitdiff
Add removal of old graphviz version before install on RPM systems
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Wed, 21 Oct 2020 15:05:12 +0000 (17:05 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 25 Oct 2020 08:58:36 +0000 (09:58 +0100)
ci/install-packages.sh

index 1f0499e98b74508840745e799a1ec0189aecfc44..e797022a36349e4b6443eaf8d6c609bccfdadd9b 100755 (executable)
@@ -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