summaryrefslogtreecommitdiffstats
path: root/lib/puppet/type/package.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/type/package.rb')
-rw-r--r--lib/puppet/type/package.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/puppet/type/package.rb b/lib/puppet/type/package.rb
index 237cefd46..4fee3b496 100644
--- a/lib/puppet/type/package.rb
+++ b/lib/puppet/type/package.rb
@@ -7,8 +7,7 @@ module Puppet
newtype(:package) do
@doc = "Manage packages. There is a basic dichotomy in package
support right now: Some package types (e.g., yum and apt) can
- retrieve their own package files, while others (e.g., rpm and
- sun) cannot. For those package formats that cannot retrieve
+ retrieve their own package files, while others (e.g., rpm and sun) cannot. For those package formats that cannot retrieve
their own files, you can use the ``source`` parameter to point to
the correct file.
@@ -113,7 +112,7 @@ module Puppet
def insync?(is)
@should ||= []
- @latest = nil unless defined? @latest
+ @latest = nil unless defined?(@latest)
@lateststamp ||= (Time.now.to_i - 1000)
# Iterate across all of the should values, and see how they
# turn out.
@@ -148,8 +147,7 @@ module Puppet
# that can't query versions.
return true
else
- self.debug "%s %s is installed, latest is %s" %
- [@resource.name, is.inspect, @latest.inspect]
+ self.debug "%s %s is installed, latest is %s" % [@resource.name, is.inspect, @latest.inspect]
end
when :absent
return true if is == :absent or is == :purged