summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/package.rb
diff options
context:
space:
mode:
authorIan Taylor <ian@lorf.org>2009-06-05 12:39:04 -0400
committerJames Turnbull <james@lovedthanlost.net>2009-06-06 09:12:00 +1000
commit4f2c066a97e59a89df64af4b25beac6f3f0553c2 (patch)
tree126540beec3c65448e01e1b48d27275ec4ee6ea4 /lib/puppet/util/package.rb
parent97e6975d69f239e24993315a25a3117b1daa48c3 (diff)
downloadpuppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.gz
puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.xz
puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.zip
Removed extra whitespace from end of lines
Diffstat (limited to 'lib/puppet/util/package.rb')
-rw-r--r--lib/puppet/util/package.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/util/package.rb b/lib/puppet/util/package.rb
index 613aa6b1e..9beed3d00 100644
--- a/lib/puppet/util/package.rb
+++ b/lib/puppet/util/package.rb
@@ -11,10 +11,10 @@ module Puppet::Util::Package
b = bx.shift
if( a == b ) then next
- elsif (a == '-' && b == '-') then next
+ elsif (a == '-' && b == '-') then next
elsif (a == '-') then return -1
elsif (b == '-') then return 1
- elsif (a == '.' && b == '.') then next
+ elsif (a == '.' && b == '.') then next
elsif (a == '.' ) then return -1
elsif (b == '.' ) then return 1
elsif (a =~ /^\d+$/ && b =~ /^\d+$/) then
@@ -22,12 +22,12 @@ module Puppet::Util::Package
return a.to_s.upcase <=> b.to_s.upcase
end
return a.to_i <=> b.to_i
- else
+ else
return a.upcase <=> b.upcase
end
end
return version_a <=> version_b;
end
-
+
module_function :versioncmp
end