File: //etc/leapp/repos.d/system_upgrade/common/libraries/dnfconfig.pyc
�
��ic @ ss d d l m Z d d l m Z d d l m Z m Z d � Z d d � Z d � Z d � Z
d � Z d � Z d
S( i����( t StopActorExecutionError( t get_source_major_version( t apit CalledProcessErrorc C s7 d d g } t � d k r) | d d g S| d d g S( sU
Return the list of leapp and leapp-repository rpms that should be preserved
during the upgrade.
It's list of packages that should be preserved, not what is really
installed.
The snactor RPM doesn't have to be installed, but if so, we have to take
care about that too as well to prevent broken dnf transaction.
t leappt snactort 7s
python2-leapps leapp-upgrade-el7toel8s
python3-leapps leapp-upgrade-el8toel9( R ( t generic( ( sU /usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfconfig.pyt get_leapp_packages s
c C s) g | j | | � D] } | j � ^ q S( sN
Just like str.split(), but remove ambient whitespaces from all items
( t splitt strip( t datat sept maxsplitt item( ( sU /usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfconfig.pyt _strip_split s c C s] d d d g } | r9 x! | D] } | d | g 7} q Wn y | j | d t �d } WnO t k
r� } t j � j d � t d d d
i | j d 6| j d 6� � n Xy | j d � d
} Wn&