In the invirtibuilder, take advantage of the getBinaries function in
authorEvan Broder <broder@mit.edu>
Sun, 22 Nov 2009 21:07:22 +0000 (16:07 -0500)
committerEvan Broder <broder@mit.edu>
Sun, 22 Nov 2009 21:07:22 +0000 (16:07 -0500)
aptCopy.

svn path=/trunk/packages/invirt-dev/; revision=2545

invirtibuilder

index 65423ee..1a77e74 100755 (executable)
@@ -95,12 +95,7 @@ def sanitizeVersion(version):
 
 def aptCopy(packages, dst_pocket, src_pocket):
     """Copy a package from one pocket to another."""
-    binaries = []
-    for line in b.getGitFile(package, commit, 'debian/control').split('\n'):
-        m = re.match('Package: (.*)$')
-        if m:
-            binaries.append(m.group(1))
-
+    binaries = getBinaries(package, commit)
     cpatureOutput(['reprepro-env', 'copy',
                    b.pocketToApt(dst_pocket),
                    b.pocketToApt(src_pocket),