From: armando-migliaccio Date: Sun, 21 Dec 2014 04:55:35 +0000 (-0800) Subject: Prevent symlinks to be added to the tree X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3bf7e4574267eca9b013d5485477458baf7a2891;p=openstack-build%2Fneutron-build.git Prevent symlinks to be added to the tree Symlinks cannot be allowed because they are not supported by distutils. Adding them results into package build failures. This patch add a check that verifies that no symlinks can slip in. Closes-bug: #1404605 Change-Id: I0d308127081bb2fa4ff7d7e0ed2f1b6e915163c9 --- diff --git a/tox.ini b/tox.ini index 301d453d0..571b57140 100644 --- a/tox.ini +++ b/tox.ini @@ -47,6 +47,7 @@ downloadcache = ~/cache/pip [testenv:pep8] commands = + sh -c "if [ $(find . -type l ! -path '*.tox*' | wc -l) -ge 1 ]; then echo 'Symlinks are not allowed!' && exit 1; fi" sh ./tools/check_bash.sh flake8 neutron-db-manage check_migration