1 /* 2014, Copyright © Intel Coporation, license APACHE-2.0, see LICENSE file */
2 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3 // Use of this source code is governed by a apache 2.0 license that can be
4 // found in the LICENSE file.
6 #include "wgt/step/configuration/step_parse.h"
8 #include <boost/filesystem/path.hpp>
10 #include <common/app_installer.h>
11 #include <common/backup_paths.h>
12 #include <common/installer_context.h>
13 #include <common/step/step.h>
14 #include <common/utils/glist_range.h>
15 #include <manifest_parser/utils/version_number.h>
16 #include <wgt_manifest_handlers/account_handler.h>
17 #include <wgt_manifest_handlers/app_control_handler.h>
18 #include <wgt_manifest_handlers/application_icons_handler.h>
19 #include <wgt_manifest_handlers/application_manifest_constants.h>
20 #include <wgt_manifest_handlers/background_category_handler.h>
21 #include <wgt_manifest_handlers/category_handler.h>
22 #include <wgt_manifest_handlers/content_handler.h>
23 #include <wgt_manifest_handlers/metadata_handler.h>
24 #include <wgt_manifest_handlers/service_handler.h>
25 #include <wgt_manifest_handlers/setting_handler.h>
26 #include <wgt_manifest_handlers/tizen_application_handler.h>
27 #include <wgt_manifest_handlers/widget_handler.h>
28 #include <wgt_manifest_handlers/ime_handler.h>
30 #include <pkgmgr/pkgmgr_parser.h>
42 #include "wgt/wgt_backend_data.h"
44 namespace bf = boost::filesystem;
48 const char kCategoryWearableClock[] =
49 "http://tizen.org/category/wearable_clock";
50 const char kCategoryWatchClock[] = "com.samsung.wmanager.WATCH_CLOCK";
52 const std::string kManifestVersion = "1.0.0";
53 const char kTizenPackageXmlNamespace[] = "http://tizen.org/ns/packages";
54 const char kImeCategoryName[] = "http://tizen.org/category/ime";
56 const char kResWgt[] = "res/wgt";
58 GList* GenerateMetadataListX(const wgt::parse::MetaDataInfo& meta_info) {
59 GList* list = nullptr;
60 for (auto& meta : meta_info.metadata()) {
61 metadata_x* new_meta =
62 static_cast<metadata_x*>(calloc(1, sizeof(metadata_x)));
63 new_meta->key = strdup(meta.first.c_str());
64 if (!meta.second.empty())
65 new_meta->value = strdup(meta.second.c_str());
66 list = g_list_append(list, new_meta);
71 void SetApplicationXDefaults(application_x* application) {
72 application->effectimage_type = strdup("image");
73 application->enabled = strdup("true");
74 application->guestmode_visibility = strdup("true");
75 application->hwacceleration = strdup("default");
76 application->indicatordisplay = strdup("true");
77 application->launchcondition = strdup("false");
78 application->permission_type = strdup("normal");
79 application->process_pool = strdup("false");
80 application->recentimage = strdup("false");
81 application->screenreader = strdup("use-system-setting");
82 application->submode = strdup("false");
83 application->support_disable = strdup("false");
84 application->ui_gadget = strdup("false");
90 namespace configuration {
92 namespace app_keys = wgt::application_widget_keys;
93 namespace sc = std::chrono;
95 StepParse::StepParse(common_installer::InstallerContext* context,
96 ConfigLocation config_location,
97 bool check_start_file)
99 config_location_(config_location),
100 check_start_file_(check_start_file) {
103 std::set<std::string> StepParse::ExtractPrivileges(
104 std::shared_ptr<const wgt::parse::PermissionsInfo> perm_info) const {
105 return perm_info->GetAPIPermissions();
108 std::string StepParse::GetPackageVersion(
109 const std::string& manifest_version) {
110 if (manifest_version.empty()) {
111 return kManifestVersion;
113 std::string version = manifest_version.substr(0,
114 manifest_version.find_first_not_of("1234567890."));
116 utils::VersionNumber version_number(version);
118 if (!version_number.IsValidTizenPackageVersion()) {
119 LOG(WARNING) << "Version number: " << manifest_version
120 << " is not valid version number for tizen package. "
121 << "Default value will be used.";
122 return kManifestVersion;
125 return version_number.ToString();
128 bool StepParse::FillInstallationInfo(manifest_x* manifest) {
129 manifest->root_path = strdup(
130 (context_->root_application_path.get() / manifest->package).c_str());
131 manifest->installed_time =
132 strdup(std::to_string(sc::system_clock::to_time_t(
133 sc::system_clock::now())).c_str());
137 bool StepParse::FillIconPaths(manifest_x* manifest) {
138 std::shared_ptr<const wgt::parse::TizenApplicationInfo> app_info =
139 std::static_pointer_cast<const wgt::parse::TizenApplicationInfo>(
140 parser_->GetManifestData(app_keys::kTizenApplicationKey));
142 LOG(ERROR) << "Application info manifest data has not been found.";
145 std::shared_ptr<const wgt::parse::ApplicationIconsInfo> icons_info =
146 std::static_pointer_cast<const wgt::parse::ApplicationIconsInfo>(
147 parser_->GetManifestData(app_keys::kIconsKey));
148 if (icons_info.get()) {
149 for (auto& application_icon : icons_info->icons()) {
150 icon_x* icon = reinterpret_cast<icon_x*> (calloc(1, sizeof(icon_x)));
151 bf::path icon_path = context_->root_application_path.get()
152 / app_info->package() / "res" / "wgt" / application_icon.path();
153 icon->text = strdup(icon_path.c_str());
154 icon->lang = strdup(DEFAULT_LOCALE);
155 manifest->icon = g_list_append(manifest->icon, icon);
161 bool StepParse::FillWidgetInfo(manifest_x* manifest) {
162 std::shared_ptr<const wgt::parse::WidgetInfo> wgt_info =
163 std::static_pointer_cast<const wgt::parse::WidgetInfo>(
164 parser_->GetManifestData(app_keys::kWidgetKey));
165 if (!wgt_info.get()) {
166 LOG(ERROR) << "Widget info manifest data has not been found.";
170 const std::string& version = wgt_info->version();
172 manifest->ns = strdup(kTizenPackageXmlNamespace);
173 manifest->version = strdup(GetPackageVersion(version).c_str());
175 for (auto& item : wgt_info->description_set()) {
176 description_x* description = reinterpret_cast<description_x*>
177 (calloc(1, sizeof(description_x)));
178 description->text = strdup(item.second.c_str());
179 description->lang = !item.first.empty() ?
180 strdup(item.first.c_str()) : strdup(DEFAULT_LOCALE);
181 manifest->description = g_list_append(manifest->description, description);
184 for (auto& item : wgt_info->name_set()) {
185 label_x* label = reinterpret_cast<label_x*>(calloc(1, sizeof(label_x)));
186 label->name = strdup(item.second.c_str());
187 label->text = strdup(item.second.c_str());
188 label->lang = !item.first.empty() ?
189 strdup(item.first.c_str()) : strdup(DEFAULT_LOCALE);
190 manifest->label = g_list_append(manifest->label, label);
193 manifest->type = strdup("wgt");
194 manifest->appsetting = strdup("false");
195 manifest->nodisplay_setting = strdup("false");
196 manifest->preload = strdup("false");
198 // For wgt package use the long name
199 for (auto& item : wgt_info->name_set()) {
201 reinterpret_cast<application_x*>(manifest->application->data);
202 label_x* label = reinterpret_cast<label_x*>(calloc(1, sizeof(label_x)));
203 label->name = strdup(item.second.c_str());
204 label->text = strdup(item.second.c_str());
205 label->lang = !item.first.empty() ?
206 strdup(item.first.c_str()) : strdup(DEFAULT_LOCALE);
207 app->label = g_list_append(app->label, label);
210 author_x* author = reinterpret_cast<author_x*>(calloc(1, sizeof(author_x)));
211 if (!wgt_info->author().empty())
212 author->text = strdup(wgt_info->author().c_str());
213 if (!wgt_info->author_email().empty())
214 author->email = strdup(wgt_info->author_email().c_str());
215 if (!wgt_info->author_href().empty())
216 author->href = strdup(wgt_info->author_href().c_str());
217 author->lang = strdup(DEFAULT_LOCALE);
218 manifest->author = g_list_append(manifest->author, author);
220 std::shared_ptr<const wgt::parse::SettingInfo> settings_info =
221 std::static_pointer_cast<const wgt::parse::SettingInfo>(
222 parser_->GetManifestData(
223 wgt::application_widget_keys::kTizenSettingKey));
225 switch (settings_info->install_location()) {
226 case wgt::parse::SettingInfo::InstallLocation::AUTO: {
227 manifest->installlocation = strdup("auto");
230 case wgt::parse::SettingInfo::InstallLocation::INTERNAL: {
231 manifest->installlocation = strdup("internal-only");
234 case wgt::parse::SettingInfo::InstallLocation::EXTERNAL: {
235 manifest->installlocation = strdup("prefer-external");
240 manifest->installlocation = strdup("auto");
246 bool StepParse::FillMainApplicationInfo(manifest_x* manifest) {
247 std::shared_ptr<const wgt::parse::TizenApplicationInfo> app_info =
248 std::static_pointer_cast<const wgt::parse::TizenApplicationInfo>(
249 parser_->GetManifestData(app_keys::kTizenApplicationKey));
251 LOG(ERROR) << "Application info manifest data has not been found.";
254 bool has_watch_catergory = false;
255 bool has_ime = false;
256 std::shared_ptr<const wgt::parse::CategoryInfoList> category_info =
257 std::static_pointer_cast<const wgt::parse::CategoryInfoList>(
258 parser_->GetManifestData(app_keys::kTizenCategoryKey));
260 has_watch_catergory = std::find_if(category_info->categories.begin(),
261 category_info->categories.end(),
262 [](const std::string& category) {
263 return category == kCategoryWearableClock ||
264 category == kCategoryWatchClock;
265 }) != category_info->categories.end();
266 has_ime = std::find(category_info->categories.begin(),
267 category_info->categories.end(),
269 ) != category_info->categories.end();
273 application_x* application = reinterpret_cast<application_x*>(
274 calloc(1, sizeof(application_x)));
275 application->component_type =
276 has_watch_catergory ? strdup("watchapp") : strdup("uiapp");
277 application->mainapp = strdup("true");
278 application->multiple = strdup("false");
279 application->appid = strdup(app_info->id().c_str());
280 application->nodisplay = has_ime ? strdup("true") : strdup("false");
281 application->taskmanage = has_ime ? strdup("false") : strdup("true");
282 SetApplicationXDefaults(application);
283 if (has_watch_catergory)
284 application->ambient_support =
285 strdup(app_info->ambient_support() ? "true" : "false");
287 application->ambient_support = strdup("false");
288 application->package = strdup(app_info->package().c_str());
291 strdup((context_->root_application_path.get() / app_info->package()
292 / "bin" / application->appid).c_str());
293 application->type = strdup("webapp");
294 application->onboot = strdup("false");
295 application->autorestart = strdup("false");
297 application->launch_mode = strdup(app_info->launch_mode().c_str());
298 if (manifest->icon) {
299 icon_x* icon = reinterpret_cast<icon_x*>(manifest->icon->data);
300 icon_x* app_icon = reinterpret_cast<icon_x*>(calloc(1, sizeof(icon_x)));
301 app_icon->text = strdup(icon->text);
302 app_icon->lang = strdup(icon->lang);
303 application->icon = g_list_append(application->icon, app_icon);
305 manifest->application = g_list_append(manifest->application, application);
307 manifest->package = strdup(app_info->package().c_str());
308 manifest->mainapp_id = strdup(app_info->id().c_str());
312 bool StepParse::FillServiceApplicationInfo(manifest_x* manifest) {
313 std::shared_ptr<const wgt::parse::ServiceList> service_list =
314 std::static_pointer_cast<const wgt::parse::ServiceList>(
315 parser_->GetManifestData(app_keys::kTizenServiceKey));
318 bool has_ime = false;
319 std::shared_ptr<const wgt::parse::CategoryInfoList> category_info =
320 std::static_pointer_cast<const wgt::parse::CategoryInfoList>(
321 parser_->GetManifestData(app_keys::kTizenCategoryKey));
323 has_ime = std::find(category_info->categories.begin(),
324 category_info->categories.end(),
326 ) != category_info->categories.end();
328 for (auto& service_info : service_list->services) {
329 application_x* application = reinterpret_cast<application_x*>
330 (calloc(1, sizeof(application_x)));
331 application->component_type = strdup("svcapp");
332 application->mainapp = strdup("false");
333 application->multiple = strdup("false");
334 application->appid = strdup(service_info.id().c_str());
336 strdup((context_->root_application_path.get() / manifest->package
337 / "bin" / application->appid).c_str());
338 application->type = strdup("webapp");
339 application->onboot =
340 service_info.on_boot() ? strdup("true") : strdup("false");
341 application->autorestart =
342 service_info.auto_restart() ? strdup("true") : strdup("false");
343 application->nodisplay = has_ime ? strdup("true") : strdup("false");
344 application->taskmanage = has_ime ? strdup("false") : strdup("true");
345 SetApplicationXDefaults(application);
346 application->ambient_support = strdup("false");
347 application->package = strdup(manifest->package);
349 for (auto& pair : service_info.names()) {
350 label_x* label = reinterpret_cast<label_x*>(calloc(1, sizeof(label_x)));
351 label->lang = !pair.first.empty() ?
352 strdup(pair.first.c_str()) : strdup(DEFAULT_LOCALE);
353 label->name = strdup(pair.second.c_str());
354 label->text = strdup(pair.second.c_str());
355 application->label = g_list_append(application->label, label);
358 if (!service_info.icon().empty()) {
359 icon_x* icon = reinterpret_cast<icon_x*>(calloc(1, sizeof(icon_x)));
360 icon->text = strdup(service_info.icon().c_str());
361 icon->lang = strdup(DEFAULT_LOCALE);
362 application->icon = g_list_append(application->icon, icon);
365 // TODO(t.iwanek): what about description, how is it different from name?
367 for (auto& category : service_info.categories()) {
368 application->category = g_list_append(application->category,
369 strdup(category.c_str()));
372 for (auto& pair : service_info.metadata_set()) {
373 metadata_x* item = reinterpret_cast<metadata_x*>(
374 calloc(1, sizeof(metadata_x)));
375 item->key = strdup(pair.first.c_str());
376 if (!pair.second.empty())
377 item->value = strdup(pair.second.c_str());
378 application->metadata = g_list_append(application->metadata, item);
381 manifest->application = g_list_append(manifest->application, application);
386 bool StepParse::FillBackgroundCategoryInfo(manifest_x* manifest) {
387 auto manifest_data = parser_->GetManifestData(
388 app_keys::kTizenBackgroundCategoryKey);
389 std::shared_ptr<const wgt::parse::BackgroundCategoryInfoList> bc_list =
390 std::static_pointer_cast<const wgt::parse::BackgroundCategoryInfoList>(
397 reinterpret_cast<application_x*>(manifest->application->data);
399 for (auto& background_category : bc_list->background_categories) {
400 app->background_category = g_list_append(
401 app->background_category, strdup(background_category.value().c_str()));
407 bool StepParse::FillAppControl(manifest_x* manifest) {
408 std::shared_ptr<const wgt::parse::AppControlInfoList> app_info_list =
409 std::static_pointer_cast<const wgt::parse::AppControlInfoList>(
410 parser_->GetManifestData(app_keys::kTizenApplicationAppControlsKey));
413 reinterpret_cast<application_x*>(manifest->application->data);
415 for (const auto& control : app_info_list->controls) {
416 appcontrol_x* app_control =
417 static_cast<appcontrol_x*>(calloc(1, sizeof(appcontrol_x)));
418 app_control->operation = strdup(control.operation().c_str());
419 app_control->mime = strdup(control.mime().c_str());
420 app_control->uri = strdup(control.uri().c_str());
421 app->appcontrol = g_list_append(app->appcontrol, app_control);
427 bool StepParse::FillPrivileges(manifest_x* manifest) {
428 std::shared_ptr<const wgt::parse::PermissionsInfo> perm_info =
429 std::static_pointer_cast<const wgt::parse::PermissionsInfo>(
430 parser_->GetManifestData(app_keys::kTizenPermissionsKey));
431 std::set<std::string> privileges;
433 privileges = ExtractPrivileges(perm_info);
435 for (auto& priv : privileges) {
436 manifest->privileges =
437 g_list_append(manifest->privileges, strdup(priv.c_str()));
442 bool StepParse::FillCategories(manifest_x* manifest) {
443 std::shared_ptr<const wgt::parse::CategoryInfoList> category_info =
444 std::static_pointer_cast<const wgt::parse::CategoryInfoList>(
445 parser_->GetManifestData(app_keys::kTizenCategoryKey));
450 reinterpret_cast<application_x*>(manifest->application->data);
451 // there is one app atm
452 for (auto& category : category_info->categories) {
453 app->category = g_list_append(app->category, strdup(category.c_str()));
458 bool StepParse::FillMetadata(manifest_x* manifest) {
459 std::shared_ptr<const wgt::parse::MetaDataInfo> meta_info =
460 std::static_pointer_cast<const wgt::parse::MetaDataInfo>(
461 parser_->GetManifestData(app_keys::kTizenMetaDataKey));
465 for (application_x* app : GListRange<application_x*>(manifest->application)) {
466 app->metadata = GenerateMetadataListX(*meta_info);
471 bool StepParse::FillAccounts(manifest_x* manifest) {
472 std::shared_ptr<const wgt::parse::AccountInfo> account_info =
473 std::static_pointer_cast<const wgt::parse::AccountInfo>(
474 parser_->GetManifestData(app_keys::kAccountKey));
477 common_installer::AccountInfo info;
478 for (auto& account : account_info->accounts()) {
479 common_installer::SingleAccountInfo single_info;
480 single_info.capabilities = account.capabilities;
481 single_info.icon_paths = account.icon_paths;
482 single_info.multiple_account_support = account.multiple_account_support;
483 single_info.names = account.names;
484 // wgt can contain only one app so this assumes mainapp_id is valid here
485 single_info.appid = manifest->mainapp_id;
486 info.set_account(single_info);
488 context_->manifest_plugins_data.get().account_info.set(info);
492 bool StepParse::FillImeInfo() {
493 const auto ime_info = std::static_pointer_cast<const wgt::parse::ImeInfo>(
494 parser_->GetManifestData(app_keys::kTizenImeKey));
498 common_installer::ImeInfo info;
499 info.setUuid(ime_info->uuid());
501 const auto &languages = ime_info->languages();
502 for (const auto &language : languages)
503 info.AddLanguage(language);
505 context_->manifest_plugins_data.get().ime_info.set(std::move(info));
509 bool StepParse::FillExtraManifestInfo(manifest_x* manifest) {
510 return FillAccounts(manifest) && FillImeInfo();
513 bool StepParse::FillManifestX(manifest_x* manifest) {
514 if (!FillIconPaths(manifest))
516 if (!FillMainApplicationInfo(manifest))
518 if (!FillWidgetInfo(manifest))
520 if (!FillInstallationInfo(manifest))
522 if (!FillPrivileges(manifest))
524 if (!FillAppControl(manifest))
526 if (!FillCategories(manifest))
528 if (!FillMetadata(manifest))
530 // TODO(t.iwanek): fix adding ui application element
531 // for now adding application service is added here because rest of code
532 // assumes that there is one application at manifest->application
533 // so this must execute last
534 if (!FillServiceApplicationInfo(manifest))
536 if (!FillBackgroundCategoryInfo(manifest))
538 if (!FillExtraManifestInfo(manifest))
543 bool StepParse::LocateConfigFile() {
544 switch (config_location_) {
545 case ConfigLocation::PACKAGE:
546 return StepParse::Check(context_->unpacked_dir_path.get());
547 case ConfigLocation::INSTALLED:
548 return StepParse::Check(context_->pkg_path.get() / kResWgt);
549 case ConfigLocation::RECOVERY:
550 if (StepParse::Check(common_installer::GetBackupPathForPackagePath(
551 context_->root_application_path.get()
552 / context_->pkgid.get()) / kResWgt))
554 if (StepParse::Check(
555 context_->root_application_path.get()
556 / context_->pkgid.get() / kResWgt))
559 case ConfigLocation::RESOURCE_WGT:
560 return StepParse::Check(context_->unpacked_dir_path.get() / kResWgt);
562 LOG(ERROR) << "Unknown config location";
567 common_installer::Step::Status StepParse::process() {
568 if (!LocateConfigFile()) {
569 LOG(ERROR) << "No config.xml";
570 return common_installer::Step::Status::MANIFEST_NOT_FOUND;
573 parser_.reset(new wgt::parse::WidgetConfigParser());
574 if (!parser_->ParseManifest(config_)) {
575 LOG(ERROR) << "[Parse] Parse failed. " << parser_->GetErrorMessage();
576 return common_installer::Step::Status::PARSE_ERROR;
578 if (check_start_file_) {
579 if (!parser_->HasValidStartFile()) {
580 LOG(ERROR) << parser_->GetErrorMessage();
581 return common_installer::Step::Status::PARSE_ERROR;
583 if (!parser_->HasValidServicesStartFiles()) {
584 LOG(ERROR) << parser_->GetErrorMessage();
585 return common_installer::Step::Status::PARSE_ERROR;
589 manifest_x* manifest =
590 static_cast<manifest_x*>(calloc(1, sizeof(manifest_x)));
591 if (!FillManifestX(manifest)) {
592 LOG(ERROR) << "[Parse] Storing manifest_x failed. "
593 << parser_->GetErrorMessage();
594 return common_installer::Step::Status::PARSE_ERROR;
597 // Copy data from ManifestData to InstallerContext
598 std::shared_ptr<const wgt::parse::TizenApplicationInfo> info =
599 std::static_pointer_cast<const wgt::parse::TizenApplicationInfo>(
600 parser_->GetManifestData(
601 wgt::application_widget_keys::kTizenApplicationKey));
602 std::shared_ptr<const wgt::parse::WidgetInfo> wgt_info =
603 std::static_pointer_cast<const wgt::parse::WidgetInfo>(
604 parser_->GetManifestData(
605 wgt::application_widget_keys::kTizenWidgetKey));
608 const auto& name_set = wgt_info->name_set();
609 if (name_set.find("") != name_set.end())
610 name = name_set.find("")->second;
611 if (name_set.begin() != name_set.end())
612 name = name_set.begin()->second;
614 std::string short_name;
615 const auto& short_name_set = wgt_info->short_name_set();
616 if (short_name_set.find("") != short_name_set.end())
617 short_name = short_name_set.find("")->second;
618 if (short_name_set.begin() != short_name_set.end())
619 short_name = short_name_set.begin()->second;
621 const std::string& package_version = wgt_info->version();
622 const std::string& required_api_version = info->required_version();
624 manifest->api_version = strdup(required_api_version.c_str());
626 context_->pkgid.set(manifest->package);
628 // write pkgid for recovery file
629 if (context_->recovery_info.get().recovery_file) {
630 context_->recovery_info.get().recovery_file->set_pkgid(manifest->package);
631 context_->recovery_info.get().recovery_file->WriteAndCommitFileContent();
634 std::shared_ptr<const wgt::parse::PermissionsInfo> perm_info =
635 std::static_pointer_cast<const wgt::parse::PermissionsInfo>(
636 parser_->GetManifestData(
637 wgt::application_widget_keys::kTizenPermissionsKey));
638 parser::PermissionSet permissions;
640 permissions = perm_info->GetAPIPermissions();
642 WgtBackendData* backend_data =
643 static_cast<WgtBackendData*>(context_->backend_data.get());
645 std::shared_ptr<const wgt::parse::SettingInfo> settings_info =
646 std::static_pointer_cast<const wgt::parse::SettingInfo>(
647 parser_->GetManifestData(
648 wgt::application_widget_keys::kTizenSettingKey));
650 backend_data->settings.set(*settings_info);
652 LOG(DEBUG) << " Read data -[ ";
653 LOG(DEBUG) << "App id: " << info->id();
654 LOG(DEBUG) << " package = " << info->package();
655 LOG(DEBUG) << " id = " << info->id();
656 LOG(DEBUG) << " name = " << name;
657 LOG(DEBUG) << " short_name = " << short_name;
658 LOG(DEBUG) << " aplication version = " << package_version;
659 LOG(DEBUG) << " api_version = " << info->required_version();
660 LOG(DEBUG) << " launch_mode = " << info->launch_mode();
661 LOG(DEBUG) << " privileges -[";
662 for (const auto& p : permissions) {
663 LOG(DEBUG) << " " << p;
668 // TODO(t.iwanek): In delta mode this step is running two times
669 if (context_->manifest_data.get())
670 pkgmgr_parser_free_manifest_xml(context_->manifest_data.get());
672 context_->manifest_data.set(manifest);
673 return common_installer::Step::Status::OK;
676 bool StepParse::Check(const boost::filesystem::path& widget_path) {
677 boost::filesystem::path config = widget_path / "config.xml";
679 LOG(DEBUG) << "config.xml path: " << config;
681 if (!boost::filesystem::exists(config))
688 } // namespace configuration