From: Quentin Smith Date: Fri, 25 Nov 2011 02:27:47 +0000 (-0500) Subject: Remove the source package when the binary package name is not the same as the source... X-Git-Tag: 0.1.18^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/78011666f8c604b24b673ef94d0c31bc6778ce91 Remove the source package when the binary package name is not the same as the source package name --- diff --git a/debian/changelog b/debian/changelog index bc34a10..0a99b19 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-dev (0.1.18) unstable; urgency=low + + * Remove the source package when the binary package name is not the same + as the source package name + + -- Quentin Smith Thu, 24 Nov 2011 21:26:29 -0500 + invirt-dev (0.1.17) unstable; urgency=low * Remove all binary packages built from a source package when rebuilding diff --git a/invirtibuilder b/invirtibuilder index 8a6b077..bf3b499 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -202,8 +202,10 @@ def uploadBuild(pocket, workdir): 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)