[packages/rpm/x32] caret anchor can be matched once

glen glen at pld-linux.org
Mon Mar 23 05:58:23 CET 2015


commit cdaf2ab613dfc1570c55c621733e749b108d4d2a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Mar 23 04:58:09 2015 +0000

    caret anchor can be matched once

 gem_helper.rb | 2 +-
 rubygems.rb   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gem_helper.rb b/gem_helper.rb
index feea121..2a6bfab 100755
--- a/gem_helper.rb
+++ b/gem_helper.rb
@@ -63,7 +63,7 @@ if ARGV[0] == "build" or ARGV[0] == "install" or ARGV[0] == "spec"
   body = {}
   # I don't know any better.. :/
   header.instance_variables.each do |iv|
-	  body[iv.to_s.gsub(/^@/,'')] = header.instance_variable_get(iv)
+	  body[iv.to_s.sub(/^@/,'')] = header.instance_variable_get(iv)
   end
 
   spec = Gem::Specification.from_yaml(YAML.dump(header))
diff --git a/rubygems.rb b/rubygems.rb
index 62dc71e..4de3db8 100755
--- a/rubygems.rb
+++ b/rubygems.rb
@@ -94,7 +94,7 @@ if gems.length > 0
               pessimistic = "rubygem(%s) < %s\n" % [name, Gem::Version.create(version[3..-1]).bump]
               version = version.gsub(/\~>/, '=>')
             end
-            version = version.gsub(/^/, ' ')
+            version = version.sub(/^/, ' ')
           end
           version = "rubygem(%s)%s\n%s" % [name, version, pessimistic]
         end
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/cdaf2ab613dfc1570c55c621733e749b108d4d2a



More information about the pld-cvs-commit mailing list