summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/package/aptitude.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/package/aptitude.rb')
-rwxr-xr-xlib/puppet/provider/package/aptitude.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/provider/package/aptitude.rb b/lib/puppet/provider/package/aptitude.rb
index 240c3fd82..c4f8023d2 100755
--- a/lib/puppet/provider/package/aptitude.rb
+++ b/lib/puppet/provider/package/aptitude.rb
@@ -15,7 +15,7 @@ Puppet::Type.type(:package).provide :aptitude, :parent => :apt do
output = aptitude(*args)
# Yay, stupid aptitude doesn't throw an error when the package is missing.
- if args.include?(:install) and output =~ /0 newly installed/
+ if args.include?(:install) and output =~ /Couldn't find any package/
raise Puppet::Error.new(
"Could not find package %s" % self.name
)
@@ -24,7 +24,7 @@ Puppet::Type.type(:package).provide :aptitude, :parent => :apt do
def purge
aptitude '-y', 'purge', @model[:name]
- end
+ end
end
# $Id$