ors: Refresh the system details after sideload and wipe system

 * Thus resolve the 'No OS installed' warnings upon system reboot
   if only adb shell twrp actions were used on the device

Change-Id: Id4fd915ce25cef8a2fdef6fda1750ca1b3ed13b7
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index 5712538..7a211ac 100755
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -156,6 +156,7 @@
 					PartitionManager.Wipe_By_Path("/cache");
 				} else if (strcmp(value, "system") == 0 || strcmp(value, "/system") == 0 || strcmp(value, PartitionManager.Get_Android_Root_Path().c_str()) == 0) {
 					PartitionManager.Wipe_By_Path("/system");
+					PartitionManager.Update_System_Details();
 				} else if (strcmp(value, "dalvik") == 0 || strcmp(value, "dalvick") == 0 || strcmp(value, "dalvikcache") == 0 || strcmp(value, "dalvickcache") == 0) {
 					PartitionManager.Wipe_Dalvik_Cache();
 				} else if (strcmp(value, "data") == 0 || strcmp(value, "/data") == 0 || strcmp(value, "factory") == 0 || strcmp(value, "factoryreset") == 0) {
@@ -387,6 +388,7 @@
 				} else {
 					ret_val = 1; // failure
 				}
+				PartitionManager.Update_System_Details();
 				sideload = 1; // Causes device to go to the home screen afterwards
 				if (sideload_child_pid != 0) {
 					LOGINFO("Signaling child sideload process to exit.\n");