Merge pull request #3 from rnavarro/master

Fixed the infinite ppa add bug.
This commit is contained in:
Matthaus Litteken 2011-08-26 14:39:11 -07:00
commit 749c3e185d

View file

@ -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,