diff options
| author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2017-04-19 15:06:21 -0300 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-04-20 22:29:41 +0200 |
| commit | 7b394c4926dcb860a356eeb46b1f1f5d807041f7 (patch) | |
| tree | 0b61db0b8f7433dc1c2619ab3f0353201c84bcd0 /support/scripts/check-package | |
| parent | 33481124c7913fbdaee327afd97fd8ba138434e6 (diff) | |
| download | buildroot-7b394c4926dcb860a356eeb46b1f1f5d807041f7.tar.gz buildroot-7b394c4926dcb860a356eeb46b1f1f5d807041f7.zip | |
check-package: move parts to subdirectory
Currently the check-package script uses many files in the same
directory. This commit keeps the main script in support/scripts/ and
moves the rest into a subdirectory.
The modules were previously prefixed to make it easy to identify which
script they belong to. This is no longer needed when using a
subdirectory, so the prefix is removed.
Note: if this commit is checked out and the script is run, and later on
a previous version is checked out, the file
support/scripts/checkpackagelib/__init__.pyc needs to be manually
removed to prevent Python interpreter to look for checkpackagelib
package when only the checkpackagelib module is available.
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/check-package')
| -rwxr-xr-x | support/scripts/check-package | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/support/scripts/check-package b/support/scripts/check-package index 2add4712cd..74ea46f819 100755 --- a/support/scripts/check-package +++ b/support/scripts/check-package @@ -1,5 +1,5 @@ #!/usr/bin/env python -# See support/scripts/check-package.txt before editing this file. +# See support/scripts/checkpackagelib/readme.txt before editing this file. from __future__ import print_function import argparse @@ -7,10 +7,10 @@ import inspect import re import sys -import checkpackagelib_config -import checkpackagelib_hash -import checkpackagelib_mk -import checkpackagelib_patch +import checkpackagelib.lib_config +import checkpackagelib.lib_hash +import checkpackagelib.lib_mk +import checkpackagelib.lib_patch VERBOSE_LEVEL_TO_SHOW_IGNORED_FILES = 3 flags = None # Command line arguments. @@ -48,13 +48,13 @@ def get_lib_from_filename(fname): if FILE_IS_FROM_A_PACKAGE.search(fname) is None: return None if CONFIG_IN_FILENAME.search(fname): - return checkpackagelib_config + return checkpackagelib.lib_config if fname.endswith(".hash"): - return checkpackagelib_hash + return checkpackagelib.lib_hash if fname.endswith(".mk"): - return checkpackagelib_mk + return checkpackagelib.lib_mk if fname.endswith(".patch"): - return checkpackagelib_patch + return checkpackagelib.lib_patch return None |

