Ejemplo n.º 1
0
 def load_developer_dmg(args, dev):
     # first find and mount the developer disk image
     im = imagemounter.ImageMounter(dev)
     imagepath = None
     if args.device_support_path:
         imagepath = dev.find_developer_disk_image_path(
             args.device_support_path.decode(u'utf-8'))
     im.mount(imagepath)
     im.disconnect()
Ejemplo n.º 2
0
 def load_developer_dmg(args, dev):
     if not args.advanced:
         # we only load in non-advanced mode
         try:
             # we're doing this as, for some reason, the checking load image
             # does isn;t very good - so if we don;t we end up transfering
             # the image every time; which is slow and generates tonnes of
             # log messages
             applist = DebugAppList(dev)
             applist.disconnect()
             # it's already loaded
         except:
             # its not ... so find and load the disk image
             im = imagemounter.ImageMounter(dev)
             imagepath = None
             if args.device_support_path:
                 imagepath = dev.find_developer_disk_image_path(
                     args.device_support_path.decode(u'utf-8'))
             im.mount(imagepath)
             im.disconnect()