[Buildroot] [PATCH 1/5] check-package: fix check of file in current dir with -b
ricardo.martincoski at gmail.com
Sat Nov 3 22:49:04 UTC 2018
On Sat, Nov 03, 2018 at 01:56 AM, Ricardo Martincoski wrote:
> One of the possible usages of check-package is to first cd to the
> directory that contains the files to test (e.g. a package directory) and
> then call the script passing the files in the current dir.
> It already works when used for intree files, but for files in a
> br2-external it throws an exception because some check functions (from
> utils/checkpackagelib/lib_*.py) do need the name of the file being
> processed and assume there will be a slash before the name.
> Notice RemoveDefaultPackageSourceVariable and TypoInPackageVariable lead
> to an exception in this case, but ApplyOrder instead generates a false
> Instead of fixing any check function that could lead to different
> behaviour when the script is called with -b for a file in the current
> directory, always use the absolute path of the file being checked when
> -b was passed. A small drawback is that the warning messages will occupy
> more columns in this case, but this approach is more future-proof as new
> check functions may also need to depend on the name of the file being
I will rework this patch and resend, based on the feedback in .
I will mark v1 of the series as Changes Requested.
More information about the buildroot