<s> """<STR_LIT>""" <EOL> import logging <EOL> import re <EOL> import subprocess <EOL> from blueprint import util <EOL> def php ( b , r ) : <EOL> logging . info ( '<STR_LIT>' ) <EOL> pattern = re . compile ( r'<STR_LIT>' ) <EOL> if util . lsb_release_codename ( ) is None : <EOL> pecl_manager = '<STR_LIT>' <EOL> else : <EOL> pecl_manager = '<STR_LIT>' <EOL> for manager , progname in ( ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( pecl_manager , '<STR_LIT>' ) ) : <EOL> try : <EOL> p = subprocess . Popen ( [ progname , '<STR_LIT:list>' ] , <EOL> close_fds = True , stdout = subprocess . PIPE ) <EOL> except OSError : <EOL> continue <EOL> for line in p . stdout : <EOL> match = pattern . match ( line ) <EOL> if match is None : <EOL> continue <EOL> package , version = match . group ( <NUM_LIT:1> ) , match . group ( <NUM_LIT:2> ) <EOL> if not r . ignore_package ( manager , package ) : <EOL> b . add_package ( manager , package , version ) </s>
