{% calculate format='samba', name='repos.conf' %} {% set repositories = update.cl.repositories %} [gentoo] sync-type = git {% if repositories and repositories[0].name == 'gentoo' and repositories[0].url %} sync-uri = {{ repositories[0].url }} {% else %} sync-uri = git://git.calculate-linux.org/calculate/gentoo-overlay.git {% endif %}