forked from len0rd/rockbox
Fix uninstallation for mi4 based bootloader installs.
On case sensitive systems (i.e. Linux) uninstalling the bootloader could fail when renaming the original bootloader file back. Fix this by using the case-resolved filename. Change-Id: I504656f70e7ccc7c0752f5252ddb14a625131f5b
This commit is contained in:
parent
537f9a4ab6
commit
5c027e3b5c
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ bool BootloaderInstallMi4::uninstall(void)
|
||||||
QFile blfile(resolved);
|
QFile blfile(resolved);
|
||||||
blfile.remove();
|
blfile.remove();
|
||||||
|
|
||||||
QFile::rename(Utils::resolvePathCase(original), m_blfile);
|
QFile::rename(Utils::resolvePathCase(original), resolved);
|
||||||
emit logItem(tr("Rockbox bootloader successful removed"), LOGINFO);
|
emit logItem(tr("Rockbox bootloader successful removed"), LOGINFO);
|
||||||
logInstall(LogRemove);
|
logInstall(LogRemove);
|
||||||
emit done(false);
|
emit done(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue