US convenience operator The Pantry has signed an agreement to acquire 47 convenience stores.