File: 01-base-image-path-fix.patch

package info (click to toggle)
libsinatra-ruby 1.0.really1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 484 kB
  • ctags: 329
  • sloc: ruby: 4,669; makefile: 36; sh: 12
file content (20 lines) | stat: -rw-r--r-- 708 bytes parent folder | download
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