(self)
Downloads the packages to be installed.
Downloads the packages to be installed.
Downloads the packages to be installed .
def GetBuildPackages(self):
    """Downloads the packages to be installed."""
    package_path = os.path.join(self.cwd, BUILD, 'Packages/')
    try:
      os.mkdir(package_path)
    except OSError:
      pass
    catalogs = [os.path.join(self.cwd, 'base%s_new.catalog' % self.os_version),
                os.path.join(self.cwd,
                             'thirdparty%s_new.catalog' % self.os_version)]

    for catalog in catalogs:
      f = open(catalog, 'r')
      packages = f.readlines()
      for line in packages:
        shutil.copy(os.path.join(TMPDIR, line.split()[0]),
                    os.path.join(package_path, line.split()[0]))
def GetBuildPackages ( self ) : package_path = os . path . join ( self . cwd , BUILD , 'Packages/' ) try : os . mkdir ( package_path ) except OSError : pass catalogs = [ os . path . join ( self . cwd , 'base%s_new.catalog' % self . os_version ) , os . path . join ( self . cwd , 'thirdparty%s_new.catalog' % self . os_version ) ] for catalog in catalogs : f = open ( catalog , 'r' ) packages = f . readlines ( ) for line in packages : shutil . copy ( os . path . join ( TMPDIR , line . split ( ) [ 0 ] ) , os . path . join ( package_path , line . split ( ) [ 0 ] ) )