Flowers Foods (FLO -0.56%) announced in an official news release that it has signed a pair of agreements to buy selected assets from Hostess Brands.The brands to be acquired are the Wonder, Nature's Pride, Merita, Home Pride, and Butternut bread products, as well as the Beefsteak brand. Flowers Foods will also purchase 20 of Hostess' bakeries, and 38 depots.

All told, the two sale agreements amount to $390 million. As Hostess is in bankruptcy, both deals are subject to court approval.

In addition to Wonder bread, Hostess is most widely known as the maker of the popular Twinkies snack cakes.