From b429c8a46d1367e59b19ebbe907703c1411a9fbc Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 26 Aug 2015 06:30:16 +0200 Subject: [PATCH] fix, [c5571f0] broke error detection during uninstallation --- cesetup/cesetup.d | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cesetup/cesetup.d b/cesetup/cesetup.d index ba82d7ff..898836ce 100644 --- a/cesetup/cesetup.d +++ b/cesetup/cesetup.d @@ -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()