| OLD | NEW |
| 1 # == Type: adblockplus::mercurial::extension | 1 # == Type: adblockplus::mercurial::extension |
| 2 # | 2 # |
| 3 # Setup rotation for a particular log file. | 3 # Setup rotation for a particular log file. |
| 4 # | 4 # |
| 5 # === Parameters: | 5 # === Parameters: |
| 6 # | 6 # |
| 7 # [*config*] | 7 # [*config*] |
| 8 # Overwrite the default hgrc.d/$name file for Mercurial extensions. | 8 # Overwrite the default hgrc.d/$name file for Mercurial extensions. |
| 9 # | 9 # |
| 10 # [*package*] | 10 # [*package*] |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 }, $config)) | 65 }, $config)) |
| 66 | 66 |
| 67 # https://docs.puppet.com/puppet/latest/lang_relationships.html | 67 # https://docs.puppet.com/puppet/latest/lang_relationships.html |
| 68 File["$name.rc"] <- Package['mercurial'] | 68 File["$name.rc"] <- Package['mercurial'] |
| 69 | 69 |
| 70 # https://docs.puppet.com/puppet/latest/function.html#defined | 70 # https://docs.puppet.com/puppet/latest/function.html#defined |
| 71 if defined('$package') { | 71 if defined('$package') { |
| 72 | 72 |
| 73 ensure_resource('package', $name, merge({ | 73 ensure_resource('package', $name, merge({ |
| 74 ensure => $adblockplus::mercurial::ensure, | 74 ensure => $adblockplus::mercurial::ensure, |
| 75 require => Package['python-dev'], | 75 require => Package['python-pip'], |
| 76 }, $package)) | 76 }, $package)) |
| 77 | 77 |
| 78 Package[$name] <- Package['mercurial'] | 78 Package[$name] <- Package['mercurial'] |
| 79 } | 79 } |
| 80 } | 80 } |
| OLD | NEW |