From a75b7dcc80d59c47937221b7bdecbebda7b62fab Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 22 Nov 2009 16:07:22 -0500 Subject: [PATCH] In the invirtibuilder, take advantage of the getBinaries function in aptCopy. svn path=/trunk/packages/invirt-dev/; revision=2545 --- invirtibuilder | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/invirtibuilder b/invirtibuilder index 65423ee..1a77e74 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -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), -- 1.7.9.5