|
|
|
|
|
|
|
|
{%- 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','*') }} |
|
|
Package: {{ pin.get('package','*') }} |
|
|
Pin: {{ pin.pin }} |
|
|
Pin: {{ pin.pin }} |
|
|
Pin-Priority: {{ pin.priority }} |
|
|
Pin-Priority: {{ pin.priority }} |
|
|
{%- endif %} |
|
|
{%- 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', '*') %} |
|
|
{%- set package = pin.get('package', '*') %} |
|
|
Package: {{ package }} |
|
|
Package: {{ package }} |
|
|
Pin: {{ pin.pin }} |
|
|
Pin: {{ pin.pin }} |
|
|
Pin-Priority: {{ pin.priority }} |
|
|
Pin-Priority: {{ pin.priority }} |
|
|
{% endfor %} |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
|
|
|
{%- endif -%} |