[Buildroot] [PATCH] support/pkg-stats: support values with an equal sign in them

Peter Korsgaard peter at korsgaard.com
Wed Nov 17 22:03:46 UTC 2021


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

 > The heuristic to extract the various variables of interest is pretty
 > crude: we filter on variables ending with certain suffixes (like
 > '%_VERSION' to get the version strings).

 > However, in doing so, we may dump variables that are not actual package
 > versions (especially with br2-external trees), and those may contain one
 > or more equal sign.  And anyway, an actual package version string may
 > very well contain an equal sign too.

 > But the current situation is that the output of 'printvars' is split on
 > all equal signs, which will not fit in the 2-tuple we assign the result,
 > thus causing an exception.

 > Fix that by limiting to a single split.

 > Reported-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 > Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>

Committed to 2021.02.x and 2021.08.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list