Set the update locations to default in CacheLocation's constructor
Otherwise the applypatch executable will fail to back up the source file to /cache when patching the recovery image. Bug: 74198354 Test: run applypatch from boot to recovery Change-Id: I6e5b9cd06d6ed0b26066b779a348437ecf984b92
This commit is contained in:
@@ -25,8 +25,7 @@ CacheLocation& CacheLocation::location() {
|
||||
return cache_location;
|
||||
}
|
||||
|
||||
void CacheLocation::ResetLocations() {
|
||||
cache_temp_source_ = kDefaultCacheTempSource;
|
||||
last_command_file_ = kDefaultLastCommandFile;
|
||||
stash_directory_base_ = kDefaultStashDirectoryBase;
|
||||
}
|
||||
CacheLocation::CacheLocation()
|
||||
: cache_temp_source_(kDefaultCacheTempSource),
|
||||
last_command_file_(kDefaultLastCommandFile),
|
||||
stash_directory_base_(kDefaultStashDirectoryBase) {}
|
||||
|
||||
Reference in New Issue
Block a user