<s> from aero . __version__ import __version__ , enc <EOL> from . base import BaseAdapter <EOL> class Apt ( BaseAdapter ) : <EOL> """<STR_LIT>""" <EOL> search_command = '<STR_LIT>' <EOL> def adapter_command ( self ) : <EOL> return '<STR_LIT>' <EOL> def search ( self , query ) : <EOL> response = self . _execute_command ( self . search_command , [ '<STR_LIT>' , query ] ) [ <NUM_LIT:0> ] . decode ( * enc ) <EOL> lst = { } <EOL> from re import match <EOL> lst . update ( [ <EOL> match ( '<STR_LIT>' , '<STR_LIT>' + line ) . groups ( ) <EOL> for line in response . splitlines ( ) <EOL> if match ( '<STR_LIT>' , line ) <EOL> ] ) <EOL> return lst <EOL> def info ( self , query ) : <EOL> response = self . _execute_command ( self . search_command , [ '<STR_LIT>' , query ] ) [ <NUM_LIT:0> ] . decode ( * enc ) <EOL> lst = [ <EOL> line . split ( '<STR_LIT>' ) if line . find ( '<STR_LIT>' ) > <NUM_LIT:0> else ( '<STR_LIT>' , line ) <EOL> for line in response . splitlines ( ) <EOL> ] <EOL> return self . munge_lines ( lst ) <EOL> def install ( self , query ) : <EOL> return self . shell ( '<STR_LIT>' , query ) </s>
