The operation of creating shared res directory
should be performed in NewContent, not Backup
Change-Id: Ie8eac77d94b9db6466fdfdb65f0e1be1a9aba763
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
return false;
}
- if (ShouldBackupSharedRes()) {
- if (!CreateSharedRes(backup_path_, context_->GetPkgPath()))
- return false;
- }
-
AddRecoveryInfo();
LOG(INFO) << "Old package context saved to: " << backup_path_;
return false;
}
+ if (ShouldBackupSharedRes()) {
+ if (!CreateSharedRes(backup_path_, context_->GetPkgPath()))
+ return false;
+ }
+
for (bf::directory_iterator iter(context_->unpacked_dir_path.get());
iter != bf::directory_iterator(); ++iter) {
if (!Move(iter->path(), install_path_, FS_MERGE_SKIP))