3 fj @sLddlZddlZddlZddlmZejdZejdZGddde Z dS)N)_z^DNF_VAR_[A-Za-z0-9_]+$Zdnfcs.eZdZfddZddZd ddZZS) Substitutionscstt|j|jdS)N)superr__init___update_from_env)self) __class__#/usr/lib/python3.6/substitutions.pyr"szSubstitutions.__init__cCs\ddtddD}xBtjjD]4\}}tj|rD|||dd<q ||kr |||<q WdS)NcSsg|] }d|qS)zDNF%dr ).0Znumr r r 'sz2Substitutions._update_from_env..r )rangeosenvironitemsENVIRONMENT_VARS_REmatch)rZ numericvarskeyvalr r r r&s  zSubstitutions._update_from_env/etc/yum/vars//etc/dnf/vars/c Csx|D]}g}y"tjj||jd}tj|}Wntk rJwYnXx|D]}tjj||}d}tjj|rys