Added ability to wipe_data and update_package at the same time.

This will be needed for a future project I am working on,
OpenUpdater.
This commit is contained in:
Chris Soyars 2010-02-26 02:45:55 -05:00
parent 261dde9f48
commit a1749d93bc

View File

@ -515,6 +515,7 @@ main(int argc, char **argv)
}
if (update_package != NULL) {
if (wipe_data && erase_root("DATA:")) status = INSTALL_ERROR;
status = install_package(update_package);
if (status != INSTALL_SUCCESS) ui_print("Installation aborted.\n");
} else if (wipe_data) {
@ -545,4 +546,4 @@ main(int argc, char **argv)
int get_allow_toggle_display() {
return allow_display_toggle;
}
}