£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
3
<e                 @   s(   d dl Z d dlmZ G dd deZdS )    N)reducec               @   s(   e Zd ZdZdd Zdd Zdd ZdS )	Mergerz0
	Tool for merging multiple profiles into one.
	c             C   s   d S )N )selfr   r   /usr/lib/python3.6/merger.py__init__	   s    zMerger.__init__c             C   s   t | j|}|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_two)r   ZconfigsZmerged_configr   r   r   merge   s    zMerger.mergec             C   s  |j j|j  xt|jj D ]~\}}|js:||jkrF||j|< q |j|j| _|j|j| _|j|j| _|j	dk	r|j	|j| _	|j
dk	r|j
|j| _
|jdk	r|j|j| _|jdk	r|j|j| _|jdk	r|j|j| _|jdk	rx"|jD ]}|j| j j|d qW d|_|dkr|j| j jdddk	r|j| j jdd}|j| j j|j  ||j| j d  |j| j d< q |j| j j|j  q W |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.
		Nscript)ZoptionsupdatelistZunitsitemsreplacetypeZenabledZdevicesZdevices_udev_regexZcpuinfo_regexZuname_regexZ
script_preZscript_postZdroppopget)r   Z	profile_aZ	profile_bZ	unit_nameZunitZoptionr
   r   r   r   r      s6    




$"zMerger._merge_twoN)__name__
__module____qualname____doc__r   r	   r   r   r   r   r   r      s   r   )collections	functoolsr   objectr   r   r   r   r   <module>   s   