* @brief External package mount object if delta update with external
*/
std::unique_ptr<ExternalMount> external_mount;
+
+ /**
+ * @brief skip-check-reference flag received from pkgmgr_installer
+ */
+ Property<bool> skip_check_reference;
};
} // namespace common_installer
return (pkgmgr_installer_get_debug_mode(pi_) == 1);
}
+bool PkgMgrInterface::GetIsSkipCheckReference() const {
+ return (pkgmgr_installer_get_skip_check_reference(pi_) == 1);
+}
+
} // namespace common_installer
bool GetDebugMode() const;
/**
+ * Returns True if the request has skip-check-reference flag.
+ * Otherwise, return false;
+ *
+ * \return True if the request has skip-check-reference flag.
+ * Otherwise, return false;
+ */
+ bool GetIsSkipCheckReference() const;
+
+ /**
* Get Raw pointer to pkgmgr_installer object
* NOTE: It should not be used (PkgMgrInterface can destroy it
*
SetupRequestType();
SetupFileCreationMask();
SetupDebugMode();
+ SetupSkipCheckReference();
if (!SetupRootAppDirectory())
return Status::CONFIG_ERROR;
context_->debug_mode.set(pkgmgr_->GetDebugMode());
}
+void StepConfigure::SetupSkipCheckReference() {
+ context_->skip_check_reference.set(pkgmgr_->GetIsSkipCheckReference());
+}
+
} // namespace configuration
} // namespace common_installer
void SetupIsKeepRWData();
void SetupIsPartialRW();
void SetupDebugMode();
+ void SetupSkipCheckReference();
PkgMgrPtr pkgmgr_;
context_->request_type.get() ==
ci::RequestType::ReadonlyUpdateUninstall ||
(getuid() == 0 &&
- (context_->request_type.get() == ci::RequestType::ManifestDirectInstall ||
+ (context_->skip_check_reference.get() ||
+ context_->request_type.get() == ci::RequestType::ManifestDirectInstall ||
context_->request_type.get() == ci::RequestType::ManifestDirectUpdate ||
context_->request_type.get() == ci::RequestType::ManifestPartialInstall ||
context_->request_type.get() == ci::RequestType::ManifestPartialUpdate)))