{% mbd_api "keyring_packages" %}
{% mbd_api "test_packages" %}
{% for r in mbd.daemon.get_active_repositories %}
{% mbd_uri 'repositories' 'static' r.identity "pool/" as r_pool_uri %}
{% mbd_uri 'repositories' 'static' r.identity "dists/" as r_dists_uri %}
{% mbd_uri 'log' 'static' r.identity|add:"/" as r_log_uri %}
{{ r }}
{% for d in r.mbd_sorted_distributions %}
{{ d }} {% mbd_api "get_sources_list" value_codename=d.base_source.codename value_repository=r.identity %}
{% for s in r.layout.suiteoption_set.all %}
{% mbd_parse_distribution r d s as distribution %}
{{ distribution.name }}
{% if s.uploadable %}U({{ distribution.mandatory_version_regex }}){% endif %}
{% if s.experimental %}E{% endif %}
{% if s.migrates_to %} => {{ s.migrates_to.suite.name }}{% endif %}
{% mbd_api "get_sources_list" value_codename=d.base_source.codename value_repository=r.identity value_suite=s.suite.name %}
{% mbd_img "browse" "Browse dist" href=distribution.uri %}
{% if not s.migrates_to and not s.experimental %}{% mbd_api "gen_snapshot" value_distribution=distribution.name %}{% endif %}
{% if s.uploadable %}{% mbd_api "port_ext" value_distributions=distribution.name %}{% endif %}
{% if distribution.snapshots %}
Snapshots
{% for snap in distribution.snapshots %}
- {{ distribution.name }}/snapshots/{{ snap }}:
{% mbd_api "get_sources_list" value_codename=d.base_source.codename value_repository=r.identity value_suite=s.suite.name value_snapshot=snap %}
{% mbd_api "del_snapshot" value_distribution=distribution.name value_name=snap %}
{% endfor %}
{% endif %}
{% if s.uploadable %}
Building with APT sources.list
{% mbd_plain content=distribution.apt_build_sources_list %}
Building with APT preferences
{% mbd_plain content=distribution.apt_build_preferences %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}