// set update true if package is updated preload package
ci::RequestType req_type = context_->request_type.get();
- if (req_type == ci::RequestType::ReadonlyUpdateInstall)
+ if (ci::QueryIsUpdatedPackage(context_->pkgid.get(), context_->uid.get()))
manifest->update = strdup("true");
- else if (req_type == ci::RequestType::ReadonlyUpdateUninstall)
- manifest->update = strdup("false");
- else if (ci::QueryIsUpdatedReadonlyPackage(context_->pkgid.get(),
- context_->uid.get()))
+ else if (ci::QueryIsPreloadPackage(context_->pkgid.get(),
+ context_->uid.get()) &&
+ (req_type == ci::RequestType::Update ||
+ req_type == ci::RequestType::Delta ||
+ req_type == ci::RequestType::MountUpdate ||
+ req_type == ci::RequestType::ReadonlyUpdateInstall))
manifest->update = strdup("true");
else
manifest->update = strdup("false");