Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Enforce new lines on requirements.in
Browse files Browse the repository at this point in the history
Before:
```
[vagrant@pulp3-source-fedora31 ~]$ cat /usr/local/lib/pulp/requirements.in
pulpcore==3.3.1
pulp-ansible
pulp-rpm
pulp-file
pulp-ansible-clientpulp-file-clientpulp-npmpulp-npm-clientpulp-rpm-clientpulp-smash
```

After:
```
[vagrant@pulp3-source-fedora31 ~]$ cat /usr/local/lib/pulp/requirements.in
pulpcore==3.3.1
pulp-ansible
pulp-rpm
pulp-file
pulp-ansible-client
pulp-file-client
pulp-npm
pulp-npm-client
pulp-rpm-client
pulp-smash
```
https://pulp.plan.io/issues/6697
closes #6697
  • Loading branch information
fao89 committed May 15, 2020
1 parent ae29a7f commit 2571c5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/6697.bugfix
@@ -0,0 +1 @@
Enforce new lines when listing plugins on requirements.in
4 changes: 3 additions & 1 deletion roles/pulp/templates/requirements.in.j2
Expand Up @@ -6,6 +6,8 @@ pulpcore=={{ pulp_version }}
# Any plugins listed below were already installed but not specified in
# pulp_install_plugins
{% for plugin in pip_pkgs.packages[pulp_install_dir + '/bin/pip'].keys() %}
{% if ("pulp-" in plugin or plugin in pulp_irregularly_named_plugins) and plugin not in pulp_install_plugins_normalized.keys() %}{{ plugin }}{% endif %}
{% if ("pulp-" in plugin or plugin in pulp_irregularly_named_plugins) and plugin not in pulp_install_plugins_normalized.keys() %}
{{ plugin }}
{% endif %}

{%- endfor %}

0 comments on commit 2571c5c

Please sign in to comment.