(req_type == RequestType::Update ||
req_type == RequestType::Delta ||
req_type == RequestType::MountUpdate ||
- req_type == RequestType::ReadonlyUpdateInstall))
+ req_type == RequestType::ReadonlyUpdateInstall ||
+ (req_type == RequestType::ManifestDirectUpdate &&
+ !context_->is_readonly_package.get())))
manifest->update = strdup("true");
else
manifest->update = strdup("false");
else
manifest->system = strdup("false");
+ if (req_type == RequestType::ManifestDirectUpdate &&
+ pkg_query.IsPreloadPackage() &&
+ !context_->is_readonly_package.get()) {
+ if (manifest->preload)
+ free(manifest->preload);
+ manifest->preload = strdup("true");
+ }
+
return Status::OK;
}