(self)
return list(ld_dict.keys())
Get get directories from container ld.so.cache
Get get directories from container ld.so.cache
Get get directories from container ld . so . cache
def _get_ld_config(self):
        """Get get directories from container ld.so.cache"""
        cmd = ["ldconfig", "-p", "-C", "%s/%s" % \
               (self._container_root, Config.conf['ld_so_cache']), ]
        ld_dict = dict()
        ld_data = Uprocess().get_output(cmd)
        if not ld_data:
            return []
        for line in ld_data.split('\n'):
            match = re.search("([^ ]+) => ([^ ]+)", line)
            if match:
                ld_dict[self._container_root + \
                        os.path.dirname(match.group(2))] = True
        return list(ld_dict.keys())
def _get_ld_config ( self ) : cmd = [ "ldconfig" , "-p" , "-C" , "%s/%s" % ( self . _container_root , Config . conf [ 'ld_so_cache' ] ) , ] ld_dict = dict ( ) ld_data = Uprocess ( ) . get_output ( cmd ) if not ld_data : return [ ] for line in ld_data . split ( '\n' ) : match = re . search ( "([^ ]+) => ([^ ]+)" , line ) if match : ld_dict [ self . _container_root + os . path . dirname ( match . group ( 2 ) ) ] = True return list ( ld_dict . keys ( ) )