Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/manifests/server.pp

Issue 29430622: Noissue - Consider Mercurial repository as absent without the .hg/hgrc file (Closed)
Patch Set: Created May 5, 2017, 5:50 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/manifests/server.pp
===================================================================
--- a/modules/web/manifests/server.pp
+++ b/modules/web/manifests/server.pp
@@ -102,7 +102,7 @@
path => ["/usr/bin/", "/bin/"],
require => Package['mercurial'],
timeout => 0,
- onlyif => "test ! -d /opt/cms",
+ onlyif => "test ! -e /opt/cms/.hg/hgrc",
mathias 2017/05/05 18:29:18 You sure this works if the directory previously ex
f.lopez 2017/05/05 19:08:54 Yeah, the problem I found was that when it timed o
}
exec {"fetch_repo":
@@ -111,7 +111,7 @@
require => Package['mercurial'],
user => www,
timeout => 0,
- onlyif => "test ! -d /home/www/${repository}",
+ onlyif => "test ! -e /home/www/${repository}/.hg/hgrc",
}
file {'/var/www':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld