diff docker/base/Dockerfile @ 106:8b228fd053bc

docker (base, libervia): use new getRepositoryData ability to save data in a .hg_data file
author Goffi <goffi@goffi.org>
date Sun, 28 Feb 2016 15:04:12 +0100
parents b69056368901
children 834bedf42332
line wrap: on
line diff
--- a/docker/base/Dockerfile	Sun Feb 28 02:01:20 2016 +0100
+++ b/docker/base/Dockerfile	Sun Feb 28 15:04:12 2016 +0100
@@ -64,7 +64,7 @@
 
 hg clone https://repos.goffi.org/urwid-satext && cd urwid-satext && \
 python setup.py install --prefix /usr --install-lib /usr/lib/python2.7/dist-packages && \
-rm -rf urwid-satext && \
+cd /tmp && rm -rf urwid-satext && \
 
 #####################
 # CORE INSTALLATION #
@@ -72,9 +72,9 @@
 
 hg clone https://repos.goffi.org/sat && cd sat && \
 python setup.py install --prefix /usr --install-lib /usr/lib/python2.7/dist-packages && \
-# we copy .hg/dirstate so SàT can get repository version
+# we save repository data so SàT can get repository version
 # TODO: should be done in setup.py in the future
-cp --parents .hg/dirstate /usr/lib/python2.7/dist-packages/sat && \
+python -c 'from sat.tools import utils;utils.getRepositoryData("/tmp/sat", is_path=True, save_dir_path="/usr/lib/python2.7/dist-packages/sat")' && \
 cd /tmp && rm -rf sat && \
 
 ######################