summaryrefslogtreecommitdiffstats
path: root/pylint-build-scan.py
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-03-15 08:13:35 +0100
committerEndi S. Dewata <edewata@redhat.com>2017-03-15 19:36:53 +0100
commit07135b5906f97a8c68148a07484e63d6896f410b (patch)
treed849bdce0673b7367249b2ff581256e9eaff5fc9 /pylint-build-scan.py
parent3253d852eb50d30f30a37800f0cf16898a038b6c (diff)
downloadpki-07135b5906f97a8c68148a07484e63d6896f410b.tar.gz
pki-07135b5906f97a8c68148a07484e63d6896f410b.tar.xz
pki-07135b5906f97a8c68148a07484e63d6896f410b.zip
Added cascading configuration for PKI CLI.
The PKI CLI has been modified to support cascading configuration files: default, system-wide, and user-specific configuration. The existing Python-based PKI CLI was moved into pki.cli.main module. A new shell script was added as a replacement which will read the configuration files and invoke the Python module.
Diffstat (limited to 'pylint-build-scan.py')
-rwxr-xr-xpylint-build-scan.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/pylint-build-scan.py b/pylint-build-scan.py
index d4156e87b..3a7b47321 100755
--- a/pylint-build-scan.py
+++ b/pylint-build-scan.py
@@ -38,7 +38,6 @@ PYLINTRC = os.path.join(SCRIPTPATH, 'dogtag.pylintrc')
FILENAMES = [
os.path.abspath(__file__),
'{sitepackages}/pki',
- '{bin}/pki-cmd', # see HACK
'{sbin}/pkispawn',
'{sbin}/pkidestroy',
'{sbin}/pki-upgrade',
@@ -130,17 +129,7 @@ def main():
if args.verbose:
pprint.pprint(pylint)
- # HACK:
- # pylint confuses the pki command with the pki package. We create a
- # symlink from bin/pki to bin/pki-cmd and test bin/pki-cmd instead.
- pki_bin = '{bin}/pki'.format(**env)
- pki_cmd = '{bin}/pki-cmd'.format(**env)
- os.symlink(pki_bin, pki_cmd)
-
- try:
- return subprocess.call(pylint, cwd=env['sitepackages'])
- finally:
- os.unlink(pki_cmd)
+ return subprocess.call(pylint, cwd=env['sitepackages'])
if __name__ == '__main__':
sys.exit(main())