VULN_CHECK_I913V6 Gi >ddlmZddlmZddlmZGddeZy)N)reduce)Profilec"eZdZdZdZdZdZy)Mergerz0 Tool for merging multiple profiles into one. cy)N)selfs :/usr/lib/python3.12/site-packages/tuned/profiles/merger.py__init__zMerger.__init__ scDt|j|t}|S)z Merge multiple configurations into one. If there are multiple units of the same type, option 'devices' is set for each unit with respect to eliminating any duplicate devices. )r _merge_twor)r configs merged_configs r mergez Merger.merge s '79=- r c`|j|j|_|jj|jt|jj D]\}}|j tjk(r|jr|jjt|jjt|jjz}|jj|j|jst|jD]$}||vs|jj!|d&|js||jvr||j|<,|j |j|_|j"|j|_|j$|j|_|j&|j&|j|_|j(|j(|j|_|j*|j*|j|_|j,|j,|j|_|j.|j.|j|_|j0|j0|j|_|j2A|j2D]+}|j|jj5|d-d|_|dk(r|j|jj7dd|j|jj7dd}|j|jj|j||j|jdz|j|jd<|j|jj|j|S)z Merge two profiles. The configuration of units with matching names are updated with options from the newer profile. If the 'replace' options of the newer unit is 'True', all options from the older unit are dropped. NF)lastscript)nameoptionsupdatelistunitsitemstypeconstsPLUGIN_VARIABLES_UNIT_NAMEreplace variablesclearsetkeysprependreversed move_to_endenableddevicesprioritydevices_udev_regex cpuinfo_regex uname_regex script_pre script_postdroppopget) r profile_a profile_b unit_nameunitoverwritten_variablesvariableoptionrs r rzMerger._merge_twos6 ^^NN9> 9,,-ioo3356oi ii6444 ||  3 3 8 8 :;c$,,BSBSBU>VV t||, ||dll+ . .&&xe&<, 8!%IOOI&*iiIOOI#)-IOOI&)-IOOI& }} +/==Y__Y( *595L5LY__Y2 %040B0BY__Y- #.2.>.>Y__Y+ "-1__Y__Y* #.2.>.>Y__Y+ yy99ooi ((,,VT:TYH!;!C!C!G!GRV!W!cooi(0044XtDV__Y''..t||<4:Y__Y=W=_=_`h=i4iY__Y''1__Y''..t||r@s*BVBr