[SCM] patch-parser packaging branch, master, updated. 9079675ea84bb4c5593032a012873e8b3a94ff13

Harald Sitter apachelogger-guest at moszumanska.debian.org
Mon May 4 10:32:13 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/patch-parser.git;a=commitdiff;h=9079675

The following commit has been merged in the master branch:
commit 9079675ea84bb4c5593032a012873e8b3a94ff13
Author: Harald Sitter <sitter at kde.org>
Date:   Mon May 4 12:32:07 2015 +0200

    ruby 1.9 is a bit quirky with regards to relative resolution
    
    simulate a __dir__ as in ruby2, alas that also got some behavior
    improvements in the underlying methods making it easier to resolve. for
    now we need a static DIR that is initalized before we chdir as we
    can't get back to our original relative scope after chdir.
---
 render.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/render.rb b/render.rb
index 3202c05..7be477a 100644
--- a/render.rb
+++ b/render.rb
@@ -8,9 +8,10 @@ require_relative 'lib/patch'
 require_relative 'lib/repo'
 
 BRANCHES = %w(kubuntu_vivid_archive kubuntu_unstable)
+DIR = File.dirname(File.expand_path(__FILE__))
 
 def abs_relative(path)
-  File.expand_path(path, File.dirname(__FILE__))
+  File.expand_path(path, DIR)
 end
 
 @log = Logger.new(STDOUT)

-- 
patch-parser packaging



More information about the pkg-kde-commits mailing list