fix, [c5571f0] broke error detection during uninstallation

This commit is contained in:
Basile Burg 2015-08-26 06:30:16 +02:00
parent c5571f0708
commit b429c8a46d
1 changed files with 5 additions and 4 deletions

View File

@ -255,14 +255,15 @@ bool uninstallResource(Resource resource, string path)
{ {
const string fname = extractedName(resource, path); const string fname = extractedName(resource, path);
if (!fname.exists) return true; if (!fname.exists) return true;
tryRemove(fname); else return tryRemove(fname);
return true;
} }
void tryRemove(string fname) bool tryRemove(string fname)
{ {
bool result = true;
try remove(fname); try remove(fname);
catch (FileException e) {} catch (FileException e) {result = false;}
return result;
} }
version(linux) void nuxPostInstall() version(linux) void nuxPostInstall()