commit | b4effb9807786fdd9bf0ad1b5a117d2fbb044594 | [log] [tgz] |
---|---|---|
author | caozhiyuan <cao.zhiyuan@zte.com.cn> | Wed Jun 10 16:46:38 2015 +0800 |
committer | caozhiyuan <cao.zhiyuan@zte.com.cn> | Wed Jun 10 16:46:56 2015 +0800 |
tree | bff59146ee8d7114ede0a6c14aa8f700258deff9 | |
parent | 1a03b4009095f0e766da19338e4681d715feeb90 [diff] |
Unmount sdcard if no package file is selected. Change-Id: I12b4f880802135a98dbc11a19e74172a3a5ef921
diff --git a/recovery.cpp b/recovery.cpp index 76149cd..a7dc6ed 100644 --- a/recovery.cpp +++ b/recovery.cpp
@@ -772,6 +772,7 @@ char* path = browse_directory(SDCARD_ROOT, device); if (path == NULL) { ui->Print("\n-- No package file selected.\n"); + ensure_path_unmounted(SDCARD_ROOT); return INSTALL_ERROR; }