new_contents: #!/usr/bin/python
  #
  # Copyright (c) 2009-2010 rPath, Inc.
  #
  # This program is distributed under the terms of the Common Public License,
  # version 1.0. A copy of this license should have been distributed with this
  # source file in a file called LICENSE. If it is not present, the license
  # is always available at http://www.rpath.com/permanent/licenses/CPL-1.0.
  #
  # This program is distributed in the hope that it will be useful, but
  # without any warranty; without even the implied warranty of merchantability
  # or fitness for a particular purpose. See the Common Public License for
  # full details.
  #
  
  import os
  import sys
  
  from _scriptsetup import mirrorballDir
  
  from updatebot import config
  from updatebot import current
  
  def usage():
      print 'usage: %s <platform>' % sys.argv[0]
      sys.exit(1)
  
  platform = sys.argv[1]
  if platform not in os.listdir(mirrorballDir + '/config'):
      usage()
  
  restoreFile=None
  if len(sys.argv) > 2:
      restoreFile = sys.argv[2]
  
  confDir = mirrorballDir + '/config/' + platform
  
  cfg = config.UpdateBotConfig()
  cfg.read(confDir + '/updatebotrc')
  
  
  bot = current.Bot(cfg)
  
  
  
  pkgMap = bot.buildgroups()
  
  import epdb; epdb.st()
  
subject: add buildgroup script