1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## Description: fix web framework images location string
## Origin: vendor
## Forwarded: not-needed
## Author: Laurent Vallar <val@zbla.net>
@DPATCH@
diff -NurpPd lib/sinatra/base.rb.orig lib/sinatra/base.rb
--- lib/sinatra/base.rb.orig 2009-06-24 16:54:25.000000000 +0200
+++ lib/sinatra/base.rb 2009-06-25 00:52:19.058224473 +0200
@@ -1013,7 +1013,7 @@ module Sinatra
configure :development do
get '/__sinatra__/:image.png' do
- filename = File.dirname(__FILE__) + "/images/#{params[:image]}.png"
+ filename = "/usr/share/pixmaps/sinatra-error-#{params[:image]}.png"
content_type :png
send_file filename
end
|