diff options
author | Matthew Dawson <matthew@mjdsystems.ca> | 2015-02-14 14:55:54 -0500 |
---|---|---|
committer | Matthew Dawson <matthew@mjdsystems.ca> | 2015-02-14 14:55:54 -0500 |
commit | 10e459d02ff3a8c76b053ba31381e643a4434782 (patch) | |
tree | f4c0540132f4e79ff684915a33aa4c12666da2f4 /src | |
parent | 9eee15917e01a89d937d1cba2eebbe9d65daeb72 (diff) | |
download | kconfig-10e459d02ff3a8c76b053ba31381e643a4434782.tar.gz kconfig-10e459d02ff3a8c76b053ba31381e643a4434782.tar.bz2 |
Revert "Revert the SIC in commit 915976c1238be811f169eab1b02f7e8dad6410e0."
This reverts commit 9eee15917e01a89d937d1cba2eebbe9d65daeb72. As agreed
with David Faure, we are going to leave this change in place for 5.7 and
see what happens.
CCMAIL: faure@kde.org
CHANGELOG: Reverts previous commit, both can be left out of the changelog.
Diffstat (limited to 'src')
-rw-r--r-- | src/kconf_update/README.kconf_update | 5 | ||||
-rw-r--r-- | src/kconf_update/kconf_update.cpp | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/kconf_update/README.kconf_update b/src/kconf_update/README.kconf_update index cff2625e..72509286 100644 --- a/src/kconf_update/README.kconf_update +++ b/src/kconf_update/README.kconf_update @@ -51,9 +51,8 @@ Commas (,) are used to seperate fields and may not occur as part of any field and all of the keywords are case-sensitive, i.e. you cannot say "key" instead of "Key" for example. -Starting in KDE Frameworks 5, all update files should have a version field -at the top of the file. Thus all files should start with the line Version=5. -Files without a version are currently treated as version 5 but are deprecated. +Starting from KDE Frameworks 5 make sure to put Version=5 before the first "Id=" otherwise the upd file +will be skipped and the config file will not be updated. For the rest the file is parsed and executed sequentially from top to bottom. Each line can contain one entry. The following entries are recognized: diff --git a/src/kconf_update/kconf_update.cpp b/src/kconf_update/kconf_update.cpp index dc16409e..309bc3c2 100644 --- a/src/kconf_update/kconf_update.cpp +++ b/src/kconf_update/kconf_update.cpp @@ -252,7 +252,8 @@ bool KonfUpdate::checkFile(const QString &filename) } if (line.startsWith("Id=")) { if (!foundVersion) { - qDebug() << QStringLiteral("Missing \"Version=5\", file \'%1\' will be skipped in the future.").arg(filename); + qDebug() << QStringLiteral("Missing \"Version=5\", file \'%1\' will be skipped.").arg(filename); + return true; } id = m_currentFilename + ':' + line.mid(3); } else if (line.startsWith("File=")) { @@ -335,7 +336,8 @@ bool KonfUpdate::updateFile(const QString &filename) } if (m_line.startsWith(QLatin1String("Id="))) { if (!foundVersion) { - qDebug() << QStringLiteral("Missing \"Version=5\", file \'%1\' will be skipped in the future.").arg(filename); + qDebug() << QStringLiteral("Missing \"Version=5\", file \'%1\' will be skipped.").arg(filename); + break; } gotId(m_line.mid(3)); } else if (m_skip) { |