Commit dff3d3ba authored by Philip Müller's avatar Philip Müller

[libmsm] update search pattern for RT

parent c6ce8356
......@@ -51,15 +51,15 @@ KernelModel::update()
QStringList recommendedKernels = getRecommendedKernels();
QSet<QString> modulesToInstall;
foreach ( const QString& module, QStringList( installedKernelPackages.keys() ).filter( QRegularExpression( "^linux([0-9][0-9]?([0-9])|[0-9][0-9]-rt)-" ) ) )
foreach ( const QString& module, QStringList( installedKernelPackages.keys() ).filter( QRegularExpression( "^linux([0-9][0-9]?([0-9])|[0-9][0-9]?([0-9])-rt)-" ) ) )
{
QString aux = QString( module ).remove( QRegularExpression( "^linux([0-9][0-9]?([0-9])|[0-9][0-9]-rt)-" ) );
QString aux = QString( module ).remove( QRegularExpression( "^linux([0-9][0-9]?([0-9])|[0-9][0-9]?([0-9])-rt)-" ) );
modulesToInstall.insert( aux );
}
beginResetModel();
m_kernels.clear();
foreach ( const QString& kernel, QStringList( allKernelPackages.keys() ).filter( QRegularExpression( "^linux([0-9][0-9]?([0-9])|[0-9][0-9]-rt)$" ) ) )
foreach ( const QString& kernel, QStringList( allKernelPackages.keys() ).filter( QRegularExpression( "^linux([0-9][0-9]?([0-9])|[0-9][0-9]?([0-9])-rt)$" ) ) )
{
Kernel newKernel;
......@@ -211,7 +211,7 @@ KernelModel::getAvailablePackages() const
{
QProcess process;
process.setEnvironment( QStringList() << "LANG=C" << "LC_MESSAGES=C" );
process.start( "pacman", QStringList() << "-Ss" << "^linux([0-9][0-9]?([0-9])|[0-9][0-9]-rt)" );
process.start( "pacman", QStringList() << "-Ss" << "^linux([0-9][0-9]?([0-9])|[0-9][0-9]?([0-9])-rt)" );
if ( !process.waitForFinished( 15000 ) )
qDebug() << "error: failed to get installed kernels";
QString result = process.readAllStandardOutput();
......@@ -239,7 +239,7 @@ KernelModel::getInstalledPackages() const
{
QProcess process;
process.setEnvironment( QStringList() << "LANG=C" << "LC_MESSAGES=C" );
process.start( "pacman", QStringList() << "-Qs" << "^linux([0-9][0-9]?([0-9])|[0-9][0-9]-rt)" );
process.start( "pacman", QStringList() << "-Qs" << "^linux([0-9][0-9]?([0-9])|[0-9][0-9]?([0-9])-rt)" );
if ( !process.waitForFinished( 15000 ) )
qDebug() << "error: failed to get installed kernels";
QString result = process.readAll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment