classes/insane: fix libdir check regexes
Ensure these do not pick up e.g. /lib/systemd/system/uuidd.socket, but ensure we pickup e.g. /usr/lib/libnss3.so.1d (example from Debian). This also fixes the broken exec_re regex (lib*.). (From OE-Core rev: 391a361190d7da19ad3381121649a41a28516cb5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fc82975607
commit
2f32ef9d1f
|
@ -265,8 +265,8 @@ def package_qa_check_libdir(d):
|
|||
full_path = os.path.join(root,file)
|
||||
my_files.append(full_path[len(pkgd):])
|
||||
|
||||
lib_re = re.compile("^/lib.*\.so")
|
||||
exec_re = re.compile("^%s.*/lib*.\.so" % exec_prefix)
|
||||
lib_re = re.compile("^lib.+\.so(\..+)?$")
|
||||
exec_re = re.compile("^%s.*/lib.+\.so(\..+)?$" % exec_prefix)
|
||||
|
||||
for file in my_files:
|
||||
if lib_re.match(file):
|
||||
|
|
Loading…
Reference in New Issue