| From c4219b81032a4208e765e862f60a7714009be963 Mon Sep 17 00:00:00 2001 |
| From: Peter Penchev <openstack-dev@storpool.com> |
| Date: Sun, 6 Sep 2020 16:01:31 +0300 |
| Subject: [PATCH] DNM: use eatmydata for apt-get and pip. |
| |
| Change-Id: I4db4129f8b8f654aa763fafaaefdae5386cbb9a7 |
| --- |
| functions-common | 2 +- |
| inc/python | 5 +++-- |
| 2 files changed, 4 insertions(+), 3 deletions(-) |
| |
| diff --git a/functions-common b/functions-common |
| index be966e96..d859fcd1 100644 |
| --- a/functions-common |
| +++ b/functions-common |
| @@ -1231,7 +1231,7 @@ function apt_get { |
| $sudo DEBIAN_FRONTEND=noninteractive \ |
| http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \ |
| no_proxy=${no_proxy:-} \ |
| - apt-get --option "Dpkg::Options::=--force-confold" --assume-yes "$@" < /dev/null |
| + eatmydata apt-get --option "Dpkg::Options::=--force-confold" --assume-yes "$@" < /dev/null |
| result=$? |
| |
| # stop the clock |
| diff --git a/inc/python b/inc/python |
| index d032a10e..cef012fc 100644 |
| --- a/inc/python |
| +++ b/inc/python |
| @@ -194,6 +194,7 @@ function pip_install { |
| https_proxy="${https_proxy:-}" \ |
| no_proxy="${no_proxy:-}" \ |
| PIP_FIND_LINKS=$PIP_FIND_LINKS \ |
| + eatmydata \ |
| $cmd_pip $upgrade \ |
| $@ |
| result=$? |
| @@ -215,7 +216,7 @@ function pip_uninstall { |
| local sudo_pip="sudo -H LC_ALL=en_US.UTF-8" |
| fi |
| # don't error if we can't uninstall, it might not be there |
| - $sudo_pip $cmd_pip uninstall -y $name || /bin/true |
| + $sudo_pip eatmydata $cmd_pip uninstall -y $name || /bin/true |
| } |
| |
| # get version of a package from global requirements file |
| @@ -480,7 +481,7 @@ function install_devstack_tools { |
| # intentionally old to ensure devstack-gate has control |
| local dstools_version=${DSTOOLS_VERSION:-0.1.2} |
| install_python3 |
| - sudo pip3 install -U devstack-tools==${dstools_version} |
| + sudo eatmydata pip3 install -U devstack-tools==${dstools_version} |
| } |
| |
| # Restore xtrace |
| -- |
| 2.35.1 |
| |