1
0
Fork 0
forked from len0rd/rockbox

rbutil: Detect if Rockbox is already installed, and allow Backup bevor installing a new build.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17440 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2008-05-10 17:53:15 +00:00
parent 251db06294
commit acccee479a
7 changed files with 49 additions and 11 deletions

View file

@ -441,13 +441,15 @@ Zip::ErrorCode Zip::addDirectory(const QString& path, const QString& root, Compr
if (info.isDir())
{
// Recursion :)
ec = addDirectory(info.absoluteFilePath(), actualRoot, recursionOptions, level);
progress();
ec = addDirectory(info.absoluteFilePath(), actualRoot, recursionOptions, level);
}
else
{
progress();
ec = d->createEntry(info, actualRoot, level);
filesAdded = true;
}
}
}
@ -455,7 +457,7 @@ Zip::ErrorCode Zip::addDirectory(const QString& path, const QString& root, Compr
// Non-empty directories don't need it because they have a path component in the filename
if (!filesAdded && !options.testFlag(IgnorePaths))
ec = d->createEntry(current, actualRoot, level);
return ec;
}