Remove all binary packages built from a source package when rebuilding 0.1.17
authorQuentin Smith <quentin@mit.edu>
Wed, 9 Nov 2011 03:51:19 +0000 (22:51 -0500)
committerQuentin Smith <quentin@mit.edu>
Wed, 9 Nov 2011 03:51:19 +0000 (22:51 -0500)
in a non-fast-forward pocket

debian/changelog
invirtibuilder

index 173343d..bc34a10 100644 (file)
@@ -1,3 +1,10 @@
+invirt-dev (0.1.17) unstable; urgency=low
+
+  * Remove all binary packages built from a source package when rebuilding
+    in a non-fast-forward pocket
+
+ -- Quentin Smith <quentin@mit.edu>  Tue, 08 Nov 2011 22:51:01 -0500
+
 invirt-dev (0.1.16) unstable; urgency=low
 
   * Properly update the superrepo's .gitmodules file
index c955dfd..8a6b077 100755 (executable)
@@ -202,8 +202,9 @@ 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])
+            packages = deb822.Changes(open(changes).read())['Binary']
+            for package in packages.split():
+                logAndRun(['reprepro-env', 'remove', apt, package])
             logAndRun(upload)