From: Andrew Schoen Date: Wed, 4 Jan 2017 15:37:25 +0000 (-0600) Subject: ceph-deploy-build: do not use python to detect the distro X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e61da13a00b5c5be6f57aee5c9c0017ce5c806aa;p=ceph-build.git ceph-deploy-build: do not use python to detect the distro We're using pbuilder in many build jobs now so we can't depend on the host to be the actual distro version that the binaries are being built for. This uses the value from the JJB matrix to determine what distro value to use when posting to chacra. Signed-off-by: Andrew Schoen --- diff --git a/ceph-deploy-build/build/build b/ceph-deploy-build/build/build index c072e530..a4869655 100644 --- a/ceph-deploy-build/build/build +++ b/ceph-deploy-build/build/build @@ -83,7 +83,15 @@ then DEB_BUILD=$(lsb_release -s -c) #XXX only releases until we fix this RELEASE=1 - DISTRO=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"` + DISTRO="" + case $DIST in + jessie|wheezy) + DISTRO="debian" + ;; + *) + DISTRO="ubuntu" + ;; + esac [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH" # ceph-deploy isn't architecture dependant, so we use 'all' as architecture and