ci-dockerfiles-deployment: Install dpkg-dev only if needed
Not present on AWS hosts. Present on baremetals, while sudo can't be used
there.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I78bb6cf3935649308106d57d48e1ead9089a9e4e
diff --git a/ci-dockerfiles-deployment/builders.sh b/ci-dockerfiles-deployment/builders.sh
index f216fa3..80b7f31 100644
--- a/ci-dockerfiles-deployment/builders.sh
+++ b/ci-dockerfiles-deployment/builders.sh
@@ -9,7 +9,10 @@
echo "########################################################################"
# For dpkg-architecture call below
-sudo apt-get -y -qq install --no-install-recommends dpkg-dev
+if ! type dpkg-architecture
+then
+ sudo apt-get -y -qq install --no-install-recommends dpkg-dev
+done
if ! type aws
then