Allow for things to already be installed
authorWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 11:19:36 +0000 (13:19 +0200)
committerWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 11:19:36 +0000 (13:19 +0200)
Our "brew install gnutls" thing is currently failing with "error, gnutls
is already installed, use upgrade to go to the latest version".

While an antifeature in brew, it is easily worked around.

.travis/before_install

index 5003096..78391d1 100644 (file)
@@ -14,6 +14,7 @@ case $(uname -s) in
                        touch ${i%in.sgml}sh.in
                done
                brew update
-               brew install glib gnutls
+               brew install glib || brew upgrade glib
+               brew install gnutls || brew upgrade gnutls
        ;;
 esac