From 84430939dea786fa4a48277ae35c27da4a5cf54e Mon Sep 17 00:00:00 2001
From: Pr0methean <4961925+Pr0methean@users.noreply.github.com>
Date: Fri, 15 Jun 2018 17:16:19 -0700
Subject: [PATCH] Fix xpath install for non-sudo builds

---
 .travis.yml               | 1 +
 .travis/codacy-install.sh | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index a21d5e79..284eaaf8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -164,6 +164,7 @@ matrix:
             - python-yaml
             - lcov
             - libopencv-dev
+            - libxml-xpath-perl
           sources: &precise_icd_sources
             - ubuntu-toolchain-r-test
             - llvm-toolchain-precise-3.7
diff --git a/.travis/codacy-install.sh b/.travis/codacy-install.sh
index 8f462600..32345de3 100755
--- a/.travis/codacy-install.sh
+++ b/.travis/codacy-install.sh
@@ -1,5 +1,4 @@
 #!/usr/bin/env bash
-sudo apt-get install libxml-xpath-perl
 # get latest version of codacy reporter from sonatype
 latest=$(curl "https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/maven-metadata.xml" | xpath -e "/metadata/versioning/release/text()")
 
-- 
GitLab