Commit c4c7bb89 authored by Christian Kandeler's avatar Christian Kandeler

Maemo: Fix file handling refactoring artifact.

Some content was written into the wrong files.
parent e36fa121
......@@ -523,7 +523,7 @@ bool AbstractDebBasedQt4MaemoTarget::setPackageNameInternal(const QString &packa
const QString oldString = QLatin1String("debian/") + oldPackageName;
const QString newString = QLatin1String("debian/") + packageName;
rulesContents.replace(oldString.toUtf8(), newString.toUtf8());
Utils::FileSaver rulesSaver(changeLogFilePath());
Utils::FileSaver rulesSaver(rulesFilePath());
rulesSaver.write(rulesContents);
return rulesSaver.finalize();
}
......@@ -645,7 +645,7 @@ bool AbstractDebBasedQt4MaemoTarget::setControlFieldValue(const QByteArray &fiel
QByteArray contents = reader.data();
if (adaptControlFileField(contents, fieldName, fieldValue)) {
MaemoGlobal::FileUpdate update(controlFilePath());
Utils::FileSaver saver(changeLogFilePath());
Utils::FileSaver saver(controlFilePath());
saver.write(contents);
return saver.finalize();
}
......
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