Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: improve python check script ......................................................................
packaging: improve python check script Change-Id: I531b79a184a1fbebf93b2d0ba50626207a6809fd Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M packaging/check.sh 1 file changed, 11 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/41/17341/1 diff --git a/packaging/check.sh b/packaging/check.sh index 27b27de..2bf6a38 100755 --- a/packaging/check.sh +++ b/packaging/check.sh @@ -2,7 +2,14 @@ BASE="$(dirname "$0")" -for d in setup services pythonlib; do - find "${BASE}/${d}" -name '*.py' -not -name config.py | xargs pyflakes - find "${BASE}/${d}" -name '*.py' -not -name config.py | xargs pep8 -done +FILES="$( + find "${BASE}" -name '*.py' | grep -v fedora | while read f; do + [ -e "${f}.in" ] || echo "${f}" + done +)" + +ret=0 +pyflakes ${FILES} || ret=1 +pep8 ${FILES} || ret=1 + +exit "${ret}" -- To view, visit http://gerrit.ovirt.org/17341 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I531b79a184a1fbebf93b2d0ba50626207a6809fd Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches