this works in offline mode only.
mic script will detect this error directory.
Change-Id: I77b65d85d55ecbeff8fbf8a7051c4aa4555f3314
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
// found in the LICENSE file.
#include <cstdio>
+#include <fstream>
#include "common/app_installer.h"
#include "common/installer_context.h"
context_->pkg_type.get(),
context_->pkgid.get());
}
+
+ if (context_->installation_mode.get() == InstallationMode::OFFLINE &&
+ context_->is_preload_request.get() &&
+ process_status != Step::Status::OK) {
+ std::fstream info_file("/tmp/.preload_install_error",
+ std::ios::out | std::ios::app);
+ info_file << context_->pkgid.get() << std::endl;
+ info_file.close();
+ }
+
return ret;
}