diff options
author | anatoly techtonik <techtonik@gmail.com> | 2014-03-05 06:21:03 +0300 |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2014-03-05 06:21:03 +0300 |
commit | fd74c2043d3920b4ea3adfdd21c18a1189d12bde (patch) | |
tree | 82cf0d48ce1a96b94d9e80330c2923dd8b247ef9 /testing/buildbot.yml | |
parent | eba5b1d5ae07ade81f6d89bfd9981f106d71899f (diff) | |
download | scons-fd74c2043d3920b4ea3adfdd21c18a1189d12bde.tar.gz |
buildbot.yml: Touch .hgrc only if necessary
Diffstat (limited to 'testing/buildbot.yml')
-rw-r--r-- | testing/buildbot.yml | 5 |
1 files changed, 4 insertions, 1 deletions
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 |