aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémy Clouard <shikamaru@mandriva.org>2010-12-09 22:20:01 +0000
committerRémy Clouard <shikamaru@mandriva.org>2010-12-09 22:20:01 +0000
commit4bef1064a240eaeca2b2ef660535042d64b48ea3 (patch)
tree4b6ad69f09be73968ac1ced37818334351e1a453
parent4814a3fbb3931946d1b4dc394054480b90704d34 (diff)
downloadrpm-setup-4bef1064a240eaeca2b2ef660535042d64b48ea3.tar
rpm-setup-4bef1064a240eaeca2b2ef660535042d64b48ea3.tar.gz
rpm-setup-4bef1064a240eaeca2b2ef660535042d64b48ea3.tar.bz2
rpm-setup-4bef1064a240eaeca2b2ef660535042d64b48ea3.tar.xz
rpm-setup-4bef1064a240eaeca2b2ef660535042d64b48ea3.zip
- use symbol, not string for the gee dependency type comparison
-rwxr-xr-xrubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubygems.rb b/rubygems.rb
index 4adc6a8..1a775bd 100755
--- a/rubygems.rb
+++ b/rubygems.rb
@@ -74,7 +74,7 @@ if gems.length > 0
end
if requires
for d in spec.dependencies
- print d.requirement.to_rpm(d.name) unless d.type != "runtime"
+ print d.requirement.to_rpm(d.name) unless d.type != :runtime
end
for d in spec.required_rubygems_version.to_rpm("rubygems")
print d.gsub(/(rubygem\()|(\))/, "")