except subprocess.CalledProcessError, e:
if not force:
raise
- packages = deb822.Changes(open(changes).read())['Binary']
- for package in packages.split():
+ changelog = deb822.Changes(open(changes).read())
+ packages = set(changelog['Binary'].split())
+ packages.add(changelog['Source'])
+ for package in packages:
logAndRun(['reprepro-env', 'remove', apt, package])
logAndRun(upload)