summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-05 03:21:03 (GMT)
committeranatoly techtonik <techtonik@gmail.com>2014-03-05 03:21:03 (GMT)
commitc9b8c43646d06d8a0fb3b20d0416cdde615e7109 (patch)
tree82cf0d48ce1a96b94d9e80330c2923dd8b247ef9 /testing
parentd2b747cb8a4338e9d14bcaf9d3778737e5741d1a (diff)
downloadSCons-c9b8c43646d06d8a0fb3b20d0416cdde615e7109.zip
SCons-c9b8c43646d06d8a0fb3b20d0416cdde615e7109.tar.gz
SCons-c9b8c43646d06d8a0fb3b20d0416cdde615e7109.tar.bz2
buildbot.yml: Touch .hgrc only if necessary
Diffstat (limited to 'testing')
-rw-r--r--testing/buildbot.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/buildbot.yml b/testing/buildbot.yml
index 9ae341a..b912bc8 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