So, therefore, if there was open barrels of wine there already, if they opened them. If you have a whole legion of soldiers who enter a city and come to a Jew's house, and the wine in the house is available, then if it happened during peacetime, the open barrels would be prohibited because we assume that the soldiers touched them, partook of that wine, and may also have made libations. The law at the time was that if soldiers entered a town, the people of the town were obligated to satiate them, to give them food and drink. Therefore, the soldiers who walked in probably felt entitled to some of the wine, and therefore they probably took some of it. They also felt no need to cover anything up. So the bottles are still open, and therefore we say that the bottles have been touched by the goyim (non-Jews).
But setumot, mutarim, mutarot. But sealed barrels would be permitted because the fact that there's a seal there shows that these weren't open. They wouldn't have gone to the trouble of opening them, drinking from them, and then resealing them. There would be no reason for them to do that because they wouldn't have been violating the law. So, therefore, we could assume that the sealed barrels had not been touched.
Bish'at milchama, elu va'elu mutarot. But during wartime, both types of barrels, the open barrels and the sealed barrels, are permitted. Lefi she'ein penai lenasech, because there's no time for the soldiers to actually do the nisuch, to do the libation. The soldiers are worried and anxious; they may be attacked, so they're always on guard. They don't have time to take a drink of wine or to make a libation to their idol. During wartime, the soldiers are only going to walk into the house and take certain valuables that they may need, but they're not going to stop and have a drink of wine. We can assume that the barrels were not touched because the soldiers didn't have time. If there were sealed barrels of wine, for sure the soldiers didn't open those and drink from them or make libations from them.
The only thing we do say is that if there was a closed barrel of wine before the soldiers entered the home and then it was found open, even during wartime, we have no choice but to say that the soldiers opened it, touched the wine, and left it open. So that's the only type of wine that would be prohibited in this type of wartime situation.

