(self, baseimage=None)
Downloads the base installer dmg.
Downloads the base installer dmg.
Downloads the base installer dmg .
def GetBaseImage(self, baseimage=None):
    """Downloads the base installer dmg."""
    baseos_path = os.path.join(self.cwd, BUILD,
                               'BaseOS')
    baseos_dmg = os.path.join(self.cwd, BUILD,
                              'BaseOS/Mac OS X Install DVD.dmg')
    try:
      os.mkdir(baseos_path)
    except OSError:
      pass
    if not os.path.exists(baseos_dmg):
      print 'Base image not found, getting latest one.'
      if not baseimage:
        src = os.path.join(self.webserver, 'osx_base',
                           '%s-default-base.dmg' % self.os_version)
      else:
        src = baseimage
      tgt = os.path.join(self.cwd, BUILD, 'BaseOS/Mac OS X Install DVD.dmg')

      self.DownloadFile(src, tgt)
def GetBaseImage ( self , baseimage = None ) : baseos_path = os . path . join ( self . cwd , BUILD , 'BaseOS' ) baseos_dmg = os . path . join ( self . cwd , BUILD , 'BaseOS/Mac OS X Install DVD.dmg' ) try : os . mkdir ( baseos_path ) except OSError : pass if not os . path . exists ( baseos_dmg ) : print 'Base image not found, getting latest one.' if not baseimage : src = os . path . join ( self . webserver , 'osx_base' , '%s-default-base.dmg' % self . os_version ) else : src = baseimage tgt = os . path . join ( self . cwd , BUILD , 'BaseOS/Mac OS X Install DVD.dmg' ) self . DownloadFile ( src , tgt )