mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
rbutil: fix stray rbutil.log creation when using a suffix
When instaling rockbox rbutil.log was still created in /sdcard/.rockbox Change-Id: Iea987623a206d8c8f663e8ef0ee26a103ccc285f
This commit is contained in:
parent
012245c51f
commit
8b6491db57
1 changed files with 12 additions and 1 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include <QtCore>
|
||||
#include "zipinstaller.h"
|
||||
#include "utils.h"
|
||||
#include "rbsettings.h"
|
||||
#include "ziputil.h"
|
||||
#include "Logger.h"
|
||||
|
||||
|
|
@ -191,7 +192,17 @@ void ZipInstaller::downloadDone(QNetworkReply::NetworkError error)
|
|||
}
|
||||
|
||||
emit logItem(tr("Creating installation log"),LOGINFO);
|
||||
QSettings installlog(m_mountpoint + "/.rockbox/rbutil.log", QSettings::IniFormat, nullptr);
|
||||
|
||||
QString logpath;
|
||||
QString suffix = RbSettings::value(RbSettings::Suffix).toString();
|
||||
|
||||
if (!suffix.isEmpty()) {
|
||||
logpath = m_mountpoint + suffix + "/.rockbox/rbutil.log";
|
||||
} else {
|
||||
logpath = m_mountpoint + "/.rockbox/rbutil.log";
|
||||
}
|
||||
|
||||
QSettings installlog(logpath, QSettings::IniFormat, nullptr);
|
||||
|
||||
installlog.beginGroup(m_logsection);
|
||||
for(int i = 0; i < zipContents.size(); i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue