Fix fastboot to not add '-' before suffix

Change-Id: I9351b385412151498f47ab46a2620f21b9ac38b8
This commit is contained in:
Daniel Rosenberg 2015-11-13 12:51:23 -08:00 committed by Rom Lemarchand
parent ddb842ac93
commit b10978e5cd

View file

@ -751,9 +751,9 @@ static void do_for_partition(usb_handle* usb, const char *part, const char *slot
if (!fb_getvar(usb, "current-slot", &current_slot)) {
die("Failed to identify current slot.\n");
}
func(std::string(part) + '-' + current_slot);
func(std::string(part) + current_slot);
} else {
func(std::string(part) + '-' + slot);
func(std::string(part) + slot);
}
} else {
if (force_slot && slot && slot[0]) {