Module util

Source
Expand description

Small helpers.

Structs§

ListLine
One line of a build list.

Functions§

cmp_version
Compare two dotted versions; missing components count as zero.
find_version
First dotted-number token of a --version output.
is_log_stamp
Whether s is a log stamp: a UTC time as YYYYMMDD_HHMMSS, the name eb-keep-logs rotate ages as a run directory.
package_of
Package name and version of an easyconfig file name Name-version[-toolchain].eb.
parse_list
Read build list lines: blank lines and # comments are skipped.
parse_version
Parse dotted numbers (1.2.3); a leading v is accepted.
split_args
Split a string on whitespace, honouring single and double quotes.