瀏覽代碼

Remove tralling-spaces from preferences_repo

* apt tool sensetive for tralling spaces, and 2 files
    aka:
    cat -E mcp_saltstack
    $
    Package: libsodium18$
    Pin: release o=SaltStack$
    Pin-Priority: 50$
      $
    Package: *$
    Pin: release o=SaltStack$
    Pin-Priority: 1100$
      $
    # VS
    cat -E mcp_saltstack
    $
    Package: libsodium18$
    Pin: release o=SaltStack$
    Pin-Priority: 50$
    $
    Package: *$
    Pin: release o=SaltStack$
    Pin-Priority: 1100$
    $
    Make's different logic for apt

Change-Id: Ia5fdbe319a65b0fa017c8c065905db1837f9f982
pull/167/head
azvyagintsev 6 年之前
父節點
當前提交
41581866f4
共有 1 個檔案被更改,包括 11 行新增10 行删除
  1. +11
    -10
      linux/files/preferences_repo

+ 11
- 10
linux/files/preferences_repo 查看文件

@@ -1,18 +1,19 @@
{%- from "linux/map.jinja" import system with context %}
{%- set repo = system.repo[repo_name] %}
{%- if repo.pinning is defined %}
{%- for id,pin in repo.pinning|dictsort %}
{%- if pin.get('enabled', False) %}
{%- from "linux/map.jinja" import system with context -%}
{%- set repo = system.repo[repo_name] -%}
{%- if repo.pinning is defined -%}
{%- for id,pin in repo.pinning|dictsort -%}
{% if pin.get('enabled', False) %}

Package: {{ pin.get('package','*') }}
Pin: {{ pin.pin }}
Pin-Priority: {{ pin.priority }}
{%- endif %}
{% endfor %}
{%- elif repo.pin is defined %}
{%- for pin in repo.pin %}
{%- endfor -%}
{%- elif repo.pin is defined -%}
{%- for pin in repo.pin -%}
{%- set package = pin.get('package', '*') %}
Package: {{ package }}
Pin: {{ pin.pin }}
Pin-Priority: {{ pin.priority }}
{% endfor %}
{%- endif %}
{%- endfor %}
{%- endif -%}

Loading…
取消
儲存