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
This commit is contained in:
Dominik Wenger 2008-08-22 17:16:45 +00:00
parent fa41ddca92
commit 1d3b8ca7a2

View file

@ -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))
{