From: Sangyoon Jang Date: Thu, 25 Nov 2021 06:37:54 +0000 (+0900) Subject: Print error log when opt.zip not found X-Git-Tag: submit/tizen_6.5/20211126.050714~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=874945e9583d359dbfd8c621a854b909d70b2ece;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Print error log when opt.zip not found Change-Id: Ic51973255bdea286895ee08020784cf18a7bae7f Signed-off-by: Sangyoon Jang --- diff --git a/src/pkg_upgrade/src/pkg_finder.cc b/src/pkg_upgrade/src/pkg_finder.cc index 02e541c..85b25c6 100644 --- a/src/pkg_upgrade/src/pkg_finder.cc +++ b/src/pkg_upgrade/src/pkg_finder.cc @@ -63,8 +63,10 @@ PkgFinder::PkgFinder() { manifest_dir_ = USR_MANIFEST_DIRECTORY; preload_rw_list_path_ = PRELOAD_RW_LIST_FILE; - if (access(kOptZipFile, F_OK) != 0) + if (access(kOptZipFile, F_OK) != 0) { + LOG(ERROR) << kOptZipFile << " does not exist"; return; + } if (UnzipFileOnlyToPath(ALL_PRELOAD_RW_PKG_LIST, PKGMGR_FOTA_PATH) != 0) { LOG(ERROR) << "Failed to unzip file from backup";