Unmount sdcard if no package file is selected.

Change-Id: I12b4f880802135a98dbc11a19e74172a3a5ef921
This commit is contained in:
caozhiyuan
2015-06-10 16:46:38 +08:00
parent 1a03b40090
commit b4effb9807

View File

@@ -772,6 +772,7 @@ static int apply_from_sdcard(Device* device, bool* wipe_cache) {
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;
}