EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/235152

Change subject: Install rproject from a cran mirror
......................................................................

Install rproject from a cran mirror

This allows to have newer versions of the project.

Change-Id: I0f26e24382070f4c763e78902ef1285f3f0b33f2
---
A files/etc_apt_sources.list.d_rproject.list
M setup.sh
2 files changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/discovery/dashboard 
refs/changes/52/235152/1

diff --git a/files/etc_apt_sources.list.d_rproject.list 
b/files/etc_apt_sources.list.d_rproject.list
new file mode 100644
index 0000000..aafebdc
--- /dev/null
+++ b/files/etc_apt_sources.list.d_rproject.list
@@ -0,0 +1 @@
+deb https://cran.cnr.Berkeley.edu/bin/linux/ubuntu trusty/
diff --git a/setup.sh b/setup.sh
index df8dae9..a168692 100755
--- a/setup.sh
+++ b/setup.sh
@@ -80,6 +80,15 @@
     echo "Updating APT..."
     apt-get update
   fi
+
+  echo "Installing apt repositories..."
+  install_dist_template \
+      $PROJECT_ROOT/files/etc_apt_sources.list.d_rproject.list
+      /etc/apt/sources.list.d/rproject.list
+  if [ "$INSTALL_DIST_FILE_STATE" = "installed" ]; then
+    apt-get update
+  fi
+
   echo "Installing packages..."
   apt-get -y install gfortran libcurl4-openssl-dev git-core gdebi \
       r-base r-base-dev r-cran-reshape2 r-cran-rcolorbrewer

-- 
To view, visit https://gerrit.wikimedia.org/r/235152
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f26e24382070f4c763e78902ef1285f3f0b33f2
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/discovery/dashboard
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to