Liste vide par défaut quand aucune priorité n’est renseignée

This commit is contained in:
Benjamin Bohard 2020-12-04 17:04:19 +01:00
parent 157e2b06d7
commit 112f05f0b4

View File

@ -11,7 +11,7 @@
%for %%additional_repository in %%getVar('additional_repository_name')
%silent %%repositories_detail[%%str(%%additional_repository)] = {'source': %%additional_repository.additional_repository_source, 'priority': 500, 'exceptions': []}
%end for
%for %%priority_settings in %%getVar('additional_repository_priority_target')
%for %%priority_settings in %%getVar('additional_repository_priority_target', [])
%if %%str(%%priority_settings) in %%repositories_detail
%silent %%repositories_detail[%%str(%%priority_settings)]['priority'] = %%priority_settings.additional_repository_global_priority
%if %%priority_settings.additional_repository_exempted_packages