#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
+#include <pkgmgrinfo_basic.h>
+
#include "common/paths.h"
#include "common/tzip_interface.h"
Step::Status StepMountRecover::RecoveryMountUpdate() {
bf::path zip_destination_path =
GetZipPackageLocation(context_->pkg_path.get(), context_->pkgid.get());
- context_->manifest_data.get()->zip_mount_file =
- strdup(zip_destination_path.c_str());
+ manifest_x* manifest = context_->manifest_data.get();
+ if (manifest)
+ manifest->zip_mount_file = strdup(zip_destination_path.c_str());
bf::path mount_point = GetMountLocation(context_->pkg_path.get());
TzipInterface tzip_final(mount_point);