t01_pkgquality: modify regexp to catch OCaml library files
when testing for bad BuildArch tags Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
69a4080a61
commit
b4f20819f9
@ -5,6 +5,9 @@ Sat Jul 13 2013 Madrisan <davide.madrisan(a)gmail.com>
|
||||
* lib/libtest.lib - Davide Madrisan:
|
||||
Replace 'notify --error' by 'notify.error'.
|
||||
|
||||
* tests/test01_pkgquality - Davide Madrisan:
|
||||
Test fo bad BuildArch tags: modify regexp to catch OCaml library files.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Changes in version 1.16.3
|
||||
|
@ -423,9 +423,11 @@ $"checking for packages with bad BuildArch tag""${NORM}..."
|
||||
let "i = 0"
|
||||
for pck in ${rpmpkg_name[@]}; do
|
||||
pushd $tmpextractdir/$i >/dev/null
|
||||
for f in $(find -mindepth 2 -perm +111 -type f \
|
||||
-exec file {} \; | grep -E "( ELF | library )"); do
|
||||
notify.debug "found a ELF file: \`${NOTE}${f/./}${NORM}'"
|
||||
for f in $(LC_ALL=C find -mindepth 2 -type f \
|
||||
-exec file {} \; 2>/dev/null | grep -E "(\
|
||||
ELF | OCaml library | ar archive |\
|
||||
dynamically linked | statically linked )"); do
|
||||
notify.debug "found binary or library file: \`${NOTE}${f/./}${NORM}'"
|
||||
let "warning = 1"
|
||||
break
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user