[DRE-commits] r5589 - trunk/libcompass-ruby/debian/patches

Deepak Tripathi deepak-guest at alioth.debian.org
Wed Jun 16 10:36:29 UTC 2010


Author: deepak-guest
Date: 2010-06-16 10:36:28 +0000 (Wed, 16 Jun 2010)
New Revision: 5589

Added:
   trunk/libcompass-ruby/debian/patches/002get-version-from-right-place
Log:
Added patch to get version from the right path.


Added: trunk/libcompass-ruby/debian/patches/002get-version-from-right-place
===================================================================
--- trunk/libcompass-ruby/debian/patches/002get-version-from-right-place	                        (rev 0)
+++ trunk/libcompass-ruby/debian/patches/002get-version-from-right-place	2010-06-16 10:36:28 UTC (rev 5589)
@@ -0,0 +1,13 @@
+Index: libcompass-ruby-0.10.2debian.orig/lib/compass/version.rb
+===================================================================
+--- libcompass-ruby-0.10.2debian.orig.orig/lib/compass/version.rb	2010-06-16 12:28:12.000000000 +0530
++++ libcompass-ruby-0.10.2debian.orig/lib/compass/version.rb	2010-06-16 12:29:01.000000000 +0530
+@@ -22,7 +22,7 @@
+ 
+     def read_version
+       require 'yaml'
+-      @version = YAML::load(File.read(scope('VERSION.yml')))
++      @version = YAML::load(File.read(File.join('/usr/lib/ruby', RUBY_VERSION.match(/^\d+\.\d+/).to_s, 'compass/VERSION.yml')))
+       @version[:teeny] = @version[:patch]
+       @version[:string] = "#{@version[:major]}.#{@version[:minor]}.#{@version[:patch]}"
+       @version[:string] << ".#{@version[:build]}" if @version[:build]




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