Merge pull request #3 from rnavarro/master
Fixed the infinite ppa add bug.
This commit is contained in:
commit
749c3e185d
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,13 @@ define apt::ppa() {
|
|||
|
||||
Class['apt'] -> Apt::Ppa[$title]
|
||||
|
||||
Exec {
|
||||
unless => $name? {
|
||||
/ppa:(.*)/ => "/bin/cat /etc/apt/sources.list /etc/apt/sources.list.d/* | /bin/egrep '^[^#].*ppa.*$1.*$'",
|
||||
default => "/bin/cat /etc/apt/sources.list /etc/apt/sources.list.d/* | /bin/egrep '^[^#].*${title}.*$'",
|
||||
}
|
||||
}
|
||||
|
||||
exec { "apt-update-${name}":
|
||||
command => "/usr/bin/aptitude update",
|
||||
refreshonly => true,
|
||||
|
|
Loading…
Reference in a new issue