From 41a59e3d8e138065d05c736f27d3fc48be934091 Mon Sep 17 00:00:00 2001 From: Rory McCann Date: Sat, 22 Sep 2007 18:05:01 +0100 Subject: [PATCH] debs are now copied to the pool directory --- bin/add-debs-to-cd-image.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/add-debs-to-cd-image.py b/bin/add-debs-to-cd-image.py index 76477b1..3824abf 100755 --- a/bin/add-debs-to-cd-image.py +++ b/bin/add-debs-to-cd-image.py @@ -1,11 +1,11 @@ #! /usr/bin/python from optparse import OptionParser -import os +import os, shutil parser = OptionParser() -parser.add_option("-c", "--cd-dir", +parser.add_option("-d", "--cd-dir", dest="cddir", help="The directory of the install cd details") @@ -35,6 +35,11 @@ makedir_if_not_exist( cddir, 'pool', 'extras' ) makedir_if_not_exist( cddir, 'isolinux' ) makedir_if_not_exist( cddir, 'preseed' ) +# Copy all the debs to the extras file +for deb in debs: + print "Copying %s" % deb + shutil.copy( deb, os.path.join( cddir, "pool", "extras" ) ) + releases_file = open( os.path.join( cddir, 'dists', dist, 'extras', 'binary-i386', 'Release' ), 'w' ) releases_file.write( "Archive: " + dist + "\n" ) releases_file.write( "Version: " + dist_name_to_version[dist] + "\n" ) -- 2.11.4.GIT