From 96e3f714d9962f15ec3d2af43da1fc1e25f62f5e Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 12 Dec 2022 17:38:45 +0100 Subject: Replace pip calls by the appropriate packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I415bb0742e84eda658672bcc7d54c704b509ece0 Signed-off-by: Cédric Ollivier --- jjb/global/releng-macros.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'jjb') diff --git a/jjb/global/releng-macros.yaml b/jjb/global/releng-macros.yaml index b82fbea95..031e24070 100644 --- a/jjb/global/releng-macros.yaml +++ b/jjb/global/releng-macros.yaml @@ -445,8 +445,12 @@ builders: - shell: | #!/bin/bash - # Install python package - sudo -H pip install "flake8==2.6.2" + + sudo apt-get -o DPkg::Lock::Timeout=300 update && \ + sudo DEBIAN_FRONTEND=noninteractive apt-get \ + -o DPkg::Lock::Timeout=300 dist-upgrade -y + sudo DEBIAN_FRONTEND=noninteractive \ + apt-get -o DPkg::Lock::Timeout=300 install flake8 -y echo "Checking python code..." for f in $(egrep '\.py$' modified_files) @@ -463,8 +467,12 @@ builders: - shell: | #!/bin/bash - # sudo Install python packages - sudo -H pip install "yamllint==1.8.2" + + sudo apt-get -o DPkg::Lock::Timeout=300 update && \ + sudo DEBIAN_FRONTEND=noninteractive apt-get \ + -o DPkg::Lock::Timeout=300 dist-upgrade -y + sudo DEBIAN_FRONTEND=noninteractive \ + apt-get -o DPkg::Lock::Timeout=300 install yamllint -y echo "Checking yaml file..." for f in $(egrep '\.ya?ml$' modified_files) -- cgit 1.2.3-korg