mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
Add error checking to a removeTree call
This commit is contained in:
1 parent
443a6064b3
commit
e2fca42f6c
1 file changed
+4
-1
Vendored
+4
-1
@@ -131,7 +131,10 @@ int applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFil
|
||||
|
||||
const char *value;
|
||||
if (!xar_prop_get(file, "delete", &value) || !xar_prop_get(file, "delete-then-extract", &value)) {
|
||||
removeTree(destinationFilePath);
|
||||
if (!removeTree(destinationFilePath)) {
|
||||
fprintf(stderr, "delete or delete-then-extract: failed to remove %s\n", [destination fileSystemRepresentation]);
|
||||
return 1;
|
||||
}
|
||||
if (!xar_prop_get(file, "delete", &value))
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user