236
247
def _run_patch(self, patches, strip=0, reverse=False, dry_run=False):
237
args = ['patch', '-d', self.base, '-s', '-p%d' % strip, '-f']
250
process = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=stdout,
248
run_patch(self.base, patches, strip, reverse, dry_run)
263
250
def _check_upgrade(self):
264
251
if len(self._list_old_shelves()) > 0: