mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 20:12:54 +08:00
Don't move the rpm/srpm if running in testing
This commit is contained in:
@@ -43,10 +43,12 @@
|
||||
- name: Run createrepo on the srpm dir
|
||||
command: createrepo --update {{ repodir }}/SRPMS/
|
||||
|
||||
{% if testing %}
|
||||
- name: move processed srpms out to {{ rpmdir }}-old
|
||||
command: /bin/mv {{ item }} {{ rpmdir }}-old/
|
||||
with_fileglob:
|
||||
- "{{ rpmdir }}/*.src.rpm"
|
||||
{% endif %}
|
||||
|
||||
- name: copy the binary rpms to the x86_64 dir of {{ repodir }}
|
||||
copy: src={{ item }} dest={{ repodir }}/x86_64/
|
||||
@@ -56,7 +58,9 @@
|
||||
- name: Run createrepo on the x86_64 dir
|
||||
command: createrepo --update {{ repodir }}/x86_64/
|
||||
|
||||
{% if testing %}
|
||||
- name: move processed rpms out to {{ rpmdir }}-old
|
||||
command: /bin/mv {{ item }} {{ rpmdir }}-old/
|
||||
with_fileglob:
|
||||
- "{{ rpmdir }}/*.rpm"
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user