Change to not to check operation value to allow
installation of pkg which has empty appcontrol
operation name for tizen_2.4
Change-Id: I648e09174e90ed70da996b6b15f9a7514ac2cec3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
template<typename T>
bool AppControlValidation(const T& it, std::string* error) {
for (const auto& item : it.app_control) {
- if (item.operation().empty()) {
- *error =
- "The operation child element of app-control element is obligatory";
- return false;
- } else if (!parser::utils::IsValidIRI(item.operation())) {
+ if (!item.operation().empty() &&
+ !parser::utils::IsValidIRI(item.operation())) {
*error =
"The operation child element of app-control element is not valid url";
return false;