瀏覽代碼

Merge pull request #216 from prometheanfire/sort-repos

sort repos so they do not change order every run
pull/217/head
Filip Pytloun 4 年之前
父節點
當前提交
b8fb93cdaa
No account linked to committer's email address
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      linux/files/sources.list
  2. +1
    -1
      linux/system/repo.sls

+ 1
- 1
linux/files/sources.list 查看文件

@@ -1,4 +1,4 @@
{%- for name, repo in default_repos.items() %}
{%- for name, repo in default_repos.items() | sort %}
# Repository {{ name }}
{{ repo.source }}
{%- endfor %}

+ 1
- 1
linux/system/repo.sls 查看文件

@@ -36,7 +36,7 @@ purge_sources_list_d_repos:
- clean: True
{%- endif %}

{%- for name, repo in system.repo.items() %}
{%- for name, repo in system.repo.items() | sort %}
{%- set name=repo.get('name', name) %}
{%- if grains.os_family == 'Debian' %}


Loading…
取消
儲存