OSDN Git Service

tests: use in-place sed magic for enabling deb-src in travis image
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 9 Jan 2019 13:53:57 +0000 (13:53 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 14 Jan 2019 14:52:30 +0000 (14:52 +0000)
This avoids potential problems with duplicates.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
tests/docker/dockerfiles/travis.docker

index 03ebfb0..46cf367 100644 (file)
@@ -2,7 +2,7 @@ FROM travisci/ci-garnet:packer-1512502276-986baf0
 ENV DEBIAN_FRONTEND noninteractive
 ENV LANG en_US.UTF-8
 ENV LC_ALL en_US.UTF-8
-RUN cat /etc/apt/sources.list | sed "s/# deb-src/deb-src/" >> /etc/apt/sources.list
+RUN sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list
 RUN apt-get update
 RUN apt-get -y build-dep qemu
 RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools gcovr