 Issue 29430622:
  Noissue - Consider Mercurial repository as absent without the .hg/hgrc file  (Closed)
    
  
    Issue 29430622:
  Noissue - Consider Mercurial repository as absent without the .hg/hgrc file  (Closed) 
  | 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': |