[DRE-commits] r2989 - packages-wip/redmine/trunk/debian/patches

rnhurt-guest at alioth.debian.org rnhurt-guest at alioth.debian.org
Fri Sep 12 18:51:10 UTC 2008


Author: rnhurt-guest
Date: 2008-09-12 18:51:09 +0000 (Fri, 12 Sep 2008)
New Revision: 2989

Added:
   packages-wip/redmine/trunk/debian/patches/boot.rb.patch
Removed:
   packages-wip/redmine/trunk/debian/patches/config.patch
Modified:
   packages-wip/redmine/trunk/debian/patches/series
Log:
Whoops, removed invalide config.patch
The boot.rb file is the one that should be patched to help RAILS_ROOT work with
symlinks.


Added: packages-wip/redmine/trunk/debian/patches/boot.rb.patch
===================================================================
--- packages-wip/redmine/trunk/debian/patches/boot.rb.patch	                        (rev 0)
+++ packages-wip/redmine/trunk/debian/patches/boot.rb.patch	2008-09-12 18:51:09 UTC (rev 2989)
@@ -0,0 +1,12 @@
+--- a/config/boot.rb
++++ b/config/boot.rb
+@@ -1,7 +1,8 @@
+ # Don't change this file!
+ # Configure your app in config/environment.rb and config/environments/*.rb
+ 
+-RAILS_ROOT = "/usr/share/redmine" unless defined?(RAILS_ROOT)
++RAILS_ROOT = File.expand_path("#{File.dirname(__FILE__)}/..") unless defined?(RAILS_ROOT)
++
+ 
+ module Rails
+   class << self

Deleted: packages-wip/redmine/trunk/debian/patches/config.patch
===================================================================
--- packages-wip/redmine/trunk/debian/patches/config.patch	2008-09-12 18:48:19 UTC (rev 2988)
+++ packages-wip/redmine/trunk/debian/patches/config.patch	2008-09-12 18:51:09 UTC (rev 2989)
@@ -1,11 +0,0 @@
---- a/config/boot.rb
-+++ b/config/boot.rb
-@@ -1,7 +1,7 @@
- # Don't change this file!
- # Configure your app in config/environment.rb and config/environments/*.rb
- 
--RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
-+RAILS_ROOT = "/usr/share/redmine" unless defined?(RAILS_ROOT)
- 
- module Rails
-   class << self

Modified: packages-wip/redmine/trunk/debian/patches/series
===================================================================
--- packages-wip/redmine/trunk/debian/patches/series	2008-09-12 18:48:19 UTC (rev 2988)
+++ packages-wip/redmine/trunk/debian/patches/series	2008-09-12 18:51:09 UTC (rev 2989)
@@ -1,3 +1,4 @@
 dispatch-env.patch
 dispatch-config.patch
 config.patch
+boot.rb.patch




More information about the Pkg-ruby-extras-commits mailing list