X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/b9ae1aa7c56957f58ce1a16cdec108ffa3533b1b..97dfc56429b6cb2fec836c9051b1d0aa3078065c:/invirtibuilder diff --git a/invirtibuilder b/invirtibuilder index c955dfd..bf3b499 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -202,8 +202,11 @@ def uploadBuild(pocket, workdir): except subprocess.CalledProcessError, e: if not force: raise - package = deb822.Changes(open(changes).read())['Binary'] - logAndRun(['reprepro-env', 'remove', apt, package]) + 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)