mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
no-op if the pending update is already installed
This commit is contained in:
@@ -454,6 +454,11 @@ static NSString *const UnzippedFolderName = @"unzipped";
|
||||
return;
|
||||
}
|
||||
|
||||
if (packageHash && [packageHash isEqualToString:info[@"currentPackage"]]) {
|
||||
// The current package is already the one being installed, so we should no-op.
|
||||
return;
|
||||
}
|
||||
|
||||
if (removePendingUpdate) {
|
||||
NSString *currentPackageFolderPath = [self getCurrentPackageFolderPath:error];
|
||||
if (!*error && currentPackageFolderPath) {
|
||||
|
||||
Reference in New Issue
Block a user