From 3bf7e4574267eca9b013d5485477458baf7a2891 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Sat, 20 Dec 2014 20:55:35 -0800 Subject: [PATCH] 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 --- tox.ini | 1 + 1 file changed, 1 insertion(+) 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 -- 2.45.2