mirror of https://gitlab.com/basile.b/dexed.git
fix, [c5571f0
] broke error detection during uninstallation
This commit is contained in:
parent
c5571f0708
commit
b429c8a46d
|
@ -255,14 +255,15 @@ bool uninstallResource(Resource resource, string path)
|
|||
{
|
||||
const string fname = extractedName(resource, path);
|
||||
if (!fname.exists) return true;
|
||||
tryRemove(fname);
|
||||
return true;
|
||||
else return tryRemove(fname);
|
||||
}
|
||||
|
||||
void tryRemove(string fname)
|
||||
bool tryRemove(string fname)
|
||||
{
|
||||
bool result = true;
|
||||
try remove(fname);
|
||||
catch (FileException e) {}
|
||||
catch (FileException e) {result = false;}
|
||||
return result;
|
||||
}
|
||||
|
||||
version(linux) void nuxPostInstall()
|
||||
|
|
Loading…
Reference in New Issue