#NEWLINE# @ staticmethod #NEWLINE# def from_manifest( manifest , manifest_url ) : #NEWLINE# #INDENT# r = SourceInstall ( ) #NEWLINE# r . manifest = manifest #NEWLINE# r . manifest_url = manifest_url #NEWLINE# rd_debug ( ( 'Loading manifest:\n{{{%s\n}}}\n' % manifest ) ) #NEWLINE# r . install_command = manifest . get ( 'install-script' , '' ) #NEWLINE# r . check_presence_command = manifest . get ( 'check-presence-script' , '' ) #NEWLINE# r . exec_path = manifest . get ( 'exec-path' , '.' ) #NEWLINE# try : #NEWLINE# #INDENT# r . tarball = manifest [ 'uri' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise InvalidRdmanifest ( 'uri required for source rosdeps' ) #NEWLINE# #UNINDENT# r . alternate_tarball = manifest . get ( 'alternate-uri' ) #NEWLINE# r . tarball_md5sum = manifest . get ( 'md5sum' ) #NEWLINE# r . dependencies = manifest . get ( 'depends' , [ ] ) #NEWLINE# return r