Use proper install result when overwriting files
This commit is contained in:
parent
8794e623d9
commit
1bbc61f5f1
2 changed files with 3 additions and 3 deletions
|
@ -643,7 +643,7 @@ InstallResult RegisteredCache::InstallEntry(const NSP& nsp, bool overwrite_if_ex
|
|||
|
||||
Refresh();
|
||||
if (result) {
|
||||
return InstallResult::ErrorAlreadyExists;
|
||||
return InstallResult::OverwriteExisting;
|
||||
}
|
||||
return InstallResult::Success;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue