am deb4ebb2: am d2a59288: am 22ccc87a: Merge "Unmount sdcard if no package file is selected."

* commit 'deb4ebb2876b0352ddf042f680339696b89ec125':
  Unmount sdcard if no package file is selected.
This commit is contained in:
Elliott Hughes
2015-06-11 05:54:55 +00:00
committed by Android Git Automerger
+1
View File
@@ -767,6 +767,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;
}