diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2008-08-22 17:16:45 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2008-08-22 17:16:45 +0000 |
commit | 1d3b8ca7a2654c61fd7073ec130ac5aa034ba761 (patch) | |
tree | 2c41b310fa7a00c93dc84c7a265bf0a4e5b40ccf | |
parent | fa41ddca924949040fb357ebb2ea2497dea60220 (diff) |
rbutil: bootloader installation iaudio, create the FIRMWARE dir if it doesnt exist, or bootloader install will fail.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18332 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/installbootloader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/installbootloader.cpp b/rbutil/rbutilqt/installbootloader.cpp index ea9bf15ad1..4e44284fcc 100644 --- a/rbutil/rbutilqt/installbootloader.cpp +++ b/rbutil/rbutilqt/installbootloader.cpp @@ -469,8 +469,13 @@ void BootloaderInstaller::iaudioPrepare() void BootloaderInstaller::iaudioFinish() { QString firmware; + QDir dir(m_mountpoint + "/FIRMWARE/"); + if(!dir.exists()) + { + dir.mkpath(m_mountpoint + "/FIRMWARE/"); + } firmware = resolvePathCase(m_mountpoint + "/FIRMWARE/") + "/" + m_bootloadername; - + //copy the firmware if(!downloadFile.copy(firmware)) { |