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>
17 lines
357 B
Python
17 lines
357 B
Python
# See support/scripts/checkpackagelib/readme.txt before editing this file.
|
|
|
|
|
|
class _CheckFunction(object):
|
|
def __init__(self, filename, url_to_manual):
|
|
self.filename = filename
|
|
self.url_to_manual = url_to_manual
|
|
|
|
def before(self):
|
|
pass
|
|
|
|
def check_line(self, lineno, text):
|
|
pass
|
|
|
|
def after(self):
|
|
pass
|