diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-06-15 17:22:09 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-06-16 16:57:24 +0200 |
commit | 6286bcbdc3675c4d5c92ac65a6602d136911a0f7 (patch) | |
tree | e17be3b1c9b18f88186f573ad59a70cd6b018c8f /pylint-build-scan.sh | |
parent | a277f2740398a5574f9b4da46e869b05fef17a18 (diff) | |
download | pki-6286bcbdc3675c4d5c92ac65a6602d136911a0f7.tar.gz pki-6286bcbdc3675c4d5c92ac65a6602d136911a0f7.tar.xz pki-6286bcbdc3675c4d5c92ac65a6602d136911a0f7.zip |
Run pylint on upgrade scripts
pylint-build-scan.sh doesn't checked the upgrader's Python files yet.
This patch adds the common and server upgrade scripts to
pylint-build-scan.sh. It also fixes a couple of pylint violations,
mostly missing calls to __init__().
Diffstat (limited to 'pylint-build-scan.sh')
-rwxr-xr-x | pylint-build-scan.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pylint-build-scan.sh b/pylint-build-scan.sh index cbaf972f0..55c58d395 100755 --- a/pylint-build-scan.sh +++ b/pylint-build-scan.sh @@ -11,7 +11,9 @@ fi HOME_DIR=$1 -PYLINT_RC_FILE_PATH="`cd $2/.. ; pwd`/dogtag.pylintrc" +SCRIPTPATH="$( cd $(dirname $0) ; pwd -P )" + +PYLINT_RC_FILE_PATH="$SCRIPTPATH/dogtag.pylintrc" PYTHON_PACKAGE_DIR="$HOME_DIR`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`" @@ -24,6 +26,8 @@ FILES="$FILES $HOME_DIR/usr/sbin/pkidestroy" FILES="$FILES $HOME_DIR/usr/sbin/pki-upgrade" FILES="$FILES $HOME_DIR/usr/sbin/pki-server" FILES="$FILES $HOME_DIR/usr/sbin/pki-server-upgrade" +FILES="$FILES $(find $HOME_DIR/usr/share/pki/upgrade -type f)" +FILES="$FILES $(find $HOME_DIR/usr/share/pki/server/upgrade -type f)" pylint --rcfile=$PYLINT_RC_FILE_PATH $FILES |