Returning APPDIR_ERROR is ambiguous to user, and GetUnpackedPackageSize()
returns -1 when unzip APIs fail.
Change-Id: Ic0e567250eca8afbb94afe0ba37c3a4ada00189f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
if (required_size == -1) {
LOG(ERROR) << "Couldn't get uncompressed size for package: "
<< context_->file_path.get();
if (required_size == -1) {
LOG(ERROR) << "Couldn't get uncompressed size for package: "
<< context_->file_path.get();
- return Step::Status::APP_DIR_ERROR;
+ return Step::Status::UNZIP_ERROR;
}
LOG(DEBUG) << "Required size for application: " << required_size << "B";
}
LOG(DEBUG) << "Required size for application: " << required_size << "B";