Make the timer optional while getting compiled rust crates

So we can use the script in other components that are using rust crates.

Related: RHEL-14542
This commit is contained in:
Tomas Popela 2023-10-04 11:44:38 +02:00 committed by Eike Rathke
parent 5d7e7e371f
commit c4ddd6e53a

View File

@ -11,4 +11,4 @@ while read LINE; do
name=`echo $LINE | cut -d\ -f1` name=`echo $LINE | cut -d\ -f1`
version=`echo $LINE | cut -d\ -f2|sed -e 's/^v//g'` version=`echo $LINE | cut -d\ -f2|sed -e 's/^v//g'`
echo "Provides: bundled(crate($name)) = $version" echo "Provides: bundled(crate($name)) = $version"
done < <(cat $1 |grep "[0-9]\+[ ]*Compiling [a-z]"|sed -e 's/.*Compiling //'g| sort|uniq) done < <(cat $1 |grep "[0-9]*[ ]*Compiling [a-z]"|sed -e 's/.*Compiling //'g| sort|uniq)