]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rubygems.rb
- rel 37
[packages/rpm.git] / rubygems.rb
index 62dc71edfa5f3148021c23609cb08407bd9e2149..a3f63aaf3f112b303544b22ba2ec3984078d1b01 100755 (executable)
@@ -47,7 +47,6 @@ for path in $stdin.readlines
      abi_provide = true
      ruby_versioned = true
   elsif path.match(specpatt)
-    ruby_versioned = true
     gems.push(path.chomp)
   # this is quite ugly and lame, but the assumption made is that if any files
   # found in any of these directories specific to this ruby version, the
@@ -94,7 +93,10 @@ if gems.length > 0
               pessimistic = "rubygem(%s) < %s\n" % [name, Gem::Version.create(version[3..-1]).bump]
               version = version.gsub(/\~>/, '=>')
             end
-            version = version.gsub(/^/, ' ')
+            if version[0..1] == "!="
+              version = version.gsub(/\!=/, '>')
+            end
+            version = version.sub(/^/, ' ')
           end
           version = "rubygem(%s)%s\n%s" % [name, version, pessimistic]
         end
This page took 0.031681 seconds and 4 git commands to generate.