mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
pkg-stats: add new column with check-package warnings
This allows the page at http://autobuild.buildroot.net/stats/ to show how many warnings returned by check-package affect each package. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
be458128df
commit
b1e102d1ab
@ -68,6 +68,7 @@ td.lotsofpatches {
|
|||||||
<td class=\"centered\">License</td>
|
<td class=\"centered\">License</td>
|
||||||
<td class=\"centered\">License files</td>
|
<td class=\"centered\">License files</td>
|
||||||
<td class=\"centered\">Hash file</td>
|
<td class=\"centered\">Hash file</td>
|
||||||
|
<td class=\"centered\">Warnings</td>
|
||||||
</tr>
|
</tr>
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -323,6 +324,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
|
|||||||
echo "<td class=\"centered correct\">Yes</td>"
|
echo "<td class=\"centered correct\">Yes</td>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
file_list=$(find ${package_dir} -name '*.mk' -o -name '*.in*' -o -name '*.hash')
|
||||||
|
nwarnings=$(./support/scripts/check-package ${file_list} 2>&1 | sed '/\([0-9]*\) warnings generated/!d; s//\1/')
|
||||||
|
if [ ${nwarnings} -eq 0 ] ; then
|
||||||
|
echo "<td class=\"centered correct\">${nwarnings}</td>"
|
||||||
|
else
|
||||||
|
echo "<td class=\"centered wrong\">${nwarnings}</td>"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "</tr>"
|
echo "</tr>"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user