summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2016-01-17 19:11:04 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2016-01-17 19:18:26 +0100
commit5c027e3b5c667ad17728cb04265835887fe6eb62 (patch)
tree545e99ee90170983885f4b235d6f7c15c3bea7f1
parent537f9a4ab61b9be8f4bb6a8bc0d3c9d4c47993d4 (diff)
downloadrockbox-5c027e3b5c667ad17728cb04265835887fe6eb62.tar.gz
rockbox-5c027e3b5c667ad17728cb04265835887fe6eb62.zip
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
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallmi4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp b/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp
index e4722fda23..e18d3e2341 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp
@@ -109,7 +109,7 @@ bool BootloaderInstallMi4::uninstall(void)
109 QFile blfile(resolved); 109 QFile blfile(resolved);
110 blfile.remove(); 110 blfile.remove();
111 111
112 QFile::rename(Utils::resolvePathCase(original), m_blfile); 112 QFile::rename(Utils::resolvePathCase(original), resolved);
113 emit logItem(tr("Rockbox bootloader successful removed"), LOGINFO); 113 emit logItem(tr("Rockbox bootloader successful removed"), LOGINFO);
114 logInstall(LogRemove); 114 logInstall(LogRemove);
115 emit done(false); 115 emit done(false);