- c.captureOutput(['reprepro-env',
- '--ignore=wrongdistribution',
- 'include',
- apt,
- changes])
+ upload = ['reprepro-env', '--ignore=wrongdistribution',
+ 'include', apt, changes]
+ try:
+ c.captureOutput(upload)
+ except subprocess.CalledProcessError, e:
+ if not force:
+ raise
+ package = deb822.Changes(open(changes).read())['Binary']
+ c.captureOutput(['reprepro-env', 'remove', apt, package])
+ c.captureOutput(upload)