<s> from debile . slave . wrappers . adequate import parse_adequate <EOL> from schroot import schroot <EOL> import os <EOL> def adequate ( chroot_name , target , package_name , analysis ) : <EOL> with schroot ( chroot_name ) as chroot : <EOL> chroot . copy ( target , "<STR_LIT>" ) <EOL> out , err , ret = chroot . run ( [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> ] , user = '<STR_LIT:root>' ) <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> out , err , ret = chroot . run ( [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> "<STR_LIT>" % target <EOL> ] , user = '<STR_LIT:root>' , return_codes = ( <NUM_LIT:0> , <NUM_LIT:1> ) , preserve_environment = True ) <EOL> out , err , ret = chroot . run ( [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> ] , user = '<STR_LIT:root>' , preserve_environment = True ) <EOL> out , err , ret = chroot . run ( [ '<STR_LIT>' , package_name ] ) <EOL> failed = False <EOL> for issue in parse_adequate ( out . splitlines ( ) ) : <EOL> failed = True <EOL> analysis . results . append ( issue ) <EOL> return ( analysis , out , failed , None , None ) <EOL> def version ( ) : <EOL> return ( '<STR_LIT>' , '<STR_LIT>' ) </s>
