From fd74c2043d3920b4ea3adfdd21c18a1189d12bde Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Wed, 5 Mar 2014 06:21:03 +0300 Subject: buildbot.yml: Touch .hgrc only if necessary --- testing/buildbot.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/buildbot.yml b/testing/buildbot.yml index 9ae341aa..b912bc87 100644 --- a/testing/buildbot.yml +++ b/testing/buildbot.yml @@ -18,7 +18,10 @@ apt: pkg=mercurial - name: create .hgrc if necessary - file: path={{ hgrc }} owner={{ botuser }} state=touch + stat: path={{ hgrc }} + register: st + - file: path={{ hgrc }} owner={{ botuser }} state=touch + when: not st.stat.exists - name: enable mercurial purge extension ini_file: dest={{ hgrc }} backup=yes section=extensions option=hgext.purge -- cgit v1.2.1