Fix directory path of codecache.
Previously installd removed the normal cache directory when delete_code_cache is called. It should delete the code cache directory. BUG=21206499 Change-Id: I5774430e389e22805fa7984b4c83420c3677ca75
This commit is contained in:
parent
343243652d
commit
e197d815c4
@ -344,7 +344,7 @@ int delete_cache(const char *uuid, const char *pkgname, userid_t userid)
|
|||||||
int delete_code_cache(const char *uuid, const char *pkgname, userid_t userid)
|
int delete_code_cache(const char *uuid, const char *pkgname, userid_t userid)
|
||||||
{
|
{
|
||||||
std::string _codecachedir(
|
std::string _codecachedir(
|
||||||
create_data_user_package_path(uuid, userid, pkgname) + CACHE_DIR_POSTFIX);
|
create_data_user_package_path(uuid, userid, pkgname) + CODE_CACHE_DIR_POSTFIX);
|
||||||
const char* codecachedir = _codecachedir.c_str();
|
const char* codecachedir = _codecachedir.c_str();
|
||||||
|
|
||||||
struct stat s;
|
struct stat s;
|
||||||
|
Loading…
Reference in New Issue
Block a user