From c664301bd72692efbe7b2cc51e2dba2a776eef4f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 13 Feb 2014 21:46:47 +0100 Subject: [PATCH] Don't move the rpm/srpm if running in testing --- playbooks/sign_and_import.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/sign_and_import.yml b/playbooks/sign_and_import.yml index 9cfdd38466..8a8745ce26 100644 --- a/playbooks/sign_and_import.yml +++ b/playbooks/sign_and_import.yml @@ -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 %}