Bug 1303860 - Don't change directory when installing Mercurial; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Mon, 19 Sep 2016 14:15:06 -0700
changeset 415195 196718c4c0befe27a21c2a50476cc55f48fd13bf
parent 415108 fd0564234eca242b7fb753a110312679020f8059
child 415669 b540fa5fcfd05c5b0205eb0f0c1fbc51395cd77c
child 415762 29040c1cf7baedda0aaeff4bd788d5d400c127f1
push id29820
push userbmo:gps@mozilla.com
push dateMon, 19 Sep 2016 21:17:53 +0000
reviewersdustin
bugs1303860
milestone52.0a1
Bug 1303860 - Don't change directory when installing Mercurial; r?dustin install-mercurial.sh was switching directories to /usr/local/mercurial resulting in following actions adding files to that path. We don't want that. So avoid the `cd` in install-mercurial.sh. The main side effect of this change is that the desktop-test image is now ~1.2 GB smaller because files aren't being saved to /usr/local/mercurial. MozReview-Commit-ID: Kyv8oXtvsda
testing/docker/recipes/install-mercurial.sh
--- a/testing/docker/recipes/install-mercurial.sh
+++ b/testing/docker/recipes/install-mercurial.sh
@@ -52,27 +52,27 @@ EOF
 
     dpkg -i ${HG_COMMON_FILENAME} ${HG_FILENAME}
 else
     echo "Do not know how to install Mercurial on this OS"
     exit 1
 fi
 
 mkdir -p /usr/local/mercurial
-cd /usr/local/mercurial
 tooltool_fetch <<'EOF'
 [
 {
     "size": 11849,
     "digest": "c88d9b8afd6649bd28bbacfa654ebefec8087a01d1662004aae088d485edeb03a92df1193d1310c0369d7721f475b974fcd4a911428ec65936f7e40cf1609c49",
     "algorithm": "sha512",
     "filename": "robustcheckout.py"
 }
 ]
 EOF
+mv robustcheckout.py /usr/local/mercurial/robustcheckout.py
 chmod 644 /usr/local/mercurial/robustcheckout.py
 
 mkdir -p /etc/mercurial
 cat >/etc/mercurial/hgrc <<EOF
 # By default the progress bar starts after 3s and updates every 0.1s. We
 # change this so it shows and updates every 1.0s.
 # We also tell progress to assume a TTY is present so updates are printed
 # even if there is no known TTY.