9226cca cockpit_updates: break out of loop if we see success

Authored and Committed by adamwill 3 years ago
    cockpit_updates: break out of loop if we see success
    
    Behaviour changed a bit in Cockpit 238, we may now just hit
    success during this loop, so handle that. Also use 'break' for
    the other two cases, not a big run counter bump.
    
    Signed-off-by: Adam Williamson <awilliam@redhat.com>