pkg-stats: support <pkg>_LICENSE = lines with spaces
For alignement reasons, we sometimes add spaces between <pkg>_LICENSE and the equal sign. Take this into account in pkg-stats. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
0e8dafcb3e
commit
f1f580731b
@ -155,7 +155,7 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
|
|||||||
generic_packages=$(($generic_packages+1))
|
generic_packages=$(($generic_packages+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -qE "^${pkgvariable}_LICENSE =" $i ; then
|
if grep -qE "^${pkgvariable}_LICENSE[ ]*=" $i ; then
|
||||||
packages_with_license=$(($packages_with_license+1))
|
packages_with_license=$(($packages_with_license+1))
|
||||||
license=1
|
license=1
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user