summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-14 16:05:40 +0000
committerLuke Kanies <luke@madstop.com>2005-07-14 16:05:40 +0000
commitca8701025b319eabf102e518220c95f8f18dcc84 (patch)
tree4b3c10374470fdb4527b05ac17d96f3adfd0f8d3 /lib/puppet
parentebe779f88c08773d5dbc5ecb85465e07c24e206c (diff)
defaulting to rpm for everyone i don't know anything about
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@386 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/type/package.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/type/package.rb b/lib/puppet/type/package.rb
index 036ba54a0..49c7b4f8c 100644
--- a/lib/puppet/type/package.rb
+++ b/lib/puppet/type/package.rb
@@ -81,11 +81,15 @@ module Puppet
when "SunOS": @@types = ["sunpkg"]
when "Linux":
case Puppet::Fact["distro"]
+ when "Gentoo": raise "No support for gentoo yet"
when "Debian": @@types = ["dpkg"]
when "RedHat": @@types = ["rpm"]
when "Fedora": @@types = ["rpm"]
else
- raise "No default type for " + Puppet::Fact["distro"]
+ #raise "No default type for " + Puppet::Fact["distro"]
+ Puppet.warning "Using rpm as default type for %s" %
+ Puppet::Fact["distro"]
+ @@types = ["rpm"]
end
else
raise "No default type for " + Puppet::Fact["operatingsystem"]