Accepting request 305056 from home:darix:ruby

- Fix patching of the shebang line

OBS-URL: https://build.opensuse.org/request/show/305056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=87
This commit is contained in:
Marcus Rückert 2015-05-02 12:05:54 +00:00 committed by Git OBS Bridge
parent 74c83c31c9
commit a85e941c04
2 changed files with 6 additions and 1 deletions

View File

@ -227,7 +227,7 @@ Find.find(File.join(options.buildroot, gemdir)) do |fname|
if File.file?(fname) && File.executable?(fname)
next if fname =~ /\.so$/
GILogger.info "Looking at #{fname}"
patchfile(fname, /^(#!\s*.*?)(\s+-.*)?$/, "#!#{ruby} \2")
patchfile(fname, /^(#!\s*.*(?:rub|rbx).*?)(\s+-.*)?$/, "#!#{ruby} \\2")
else
next
end

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat May 2 11:55:31 UTC 2015 - mrueckert@suse.de
- Fix patching of the shebang line
-------------------------------------------------------------------
Thu Apr 16 21:45:29 UTC 2015 - mrueckert@suse.de