[DRE-commits] [SCM] ruby-taglib2.git branch, master, updated. upstream/0.1.4-16-gc6c35f1
Youhei SASAKI
uwabami at gfd-dennou.org
Sun Jan 22 18:21:05 UTC 2012
The following commit has been merged in the master branch:
commit 97ffc7030f8d9f420144a410cf00a9dc4f487a09
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date: Mon Jan 23 03:19:03 2012 +0900
add patch for test scirpt: use fileutils
- use fileutils instead of ftools because ftools is too old.
Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
diff --git a/debian/patches/series b/debian/patches/series
index f61f59b..6034787 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
fix-require.diff
compat.diff
+use_fileutils_instead_of_ftools
diff --git a/debian/patches/use_fileutils_instead_of_ftools b/debian/patches/use_fileutils_instead_of_ftools
new file mode 100644
index 0000000..a712738
--- /dev/null
+++ b/debian/patches/use_fileutils_instead_of_ftools
@@ -0,0 +1,41 @@
+Description: Use fileutils insted of ftools in tests/tests.rb
+ Upstream test script use "ftools". This library is too old.
+ This patch replace to use "fileutils" instead of "ftools".
+ .
+--- ruby-taglib2-0.1.4.orig/tests/tests.rb
++++ ruby-taglib2-0.1.4/tests/tests.rb
+@@ -20,7 +20,7 @@ This file is part of ruby-taglib2.
+ =end
+
+ require "test/unit"
+-require 'ftools'
++require 'fileutils'
+
+ class Test::Unit::TestSuite
+ alias :old_testunit_run_for_taglib2 :run
+@@ -60,7 +60,7 @@ class TaglibTestsUtil
+ end
+
+ def TaglibTestsUtil.clean
+- if File.exists?(@@tmp)
++ if File.exist?(@@tmp)
+ File.delete(*Dir.glob(File.join(@@tmp, '*')))
+ Dir.rmdir(@@tmp)
+ end
+@@ -69,11 +69,11 @@ class TaglibTestsUtil
+ def TaglibTestsUtil.setup
+ data=File.join(@@tmp, '..', 'data')
+ TaglibTestsUtil.clean
+- File.makedirs(@@tmp)
+- File.copy(File.join(data, 'silence.wav'), @@read)
+- File.copy(File.join(data, 'empty'), @@empty)
+- File.copy(File.join(data, 'silence.wav'), @@write)
+- File.copy(File.join(data, 'exceptions.ogg'), @@exceptions)
++ FileUtils.makedirs(@@tmp)
++ FileUtils.copy(File.join(data, 'silence.wav'), @@read)
++ FileUtils.copy(File.join(data, 'empty'), @@empty)
++ FileUtils.copy(File.join(data, 'silence.wav'), @@write)
++ FileUtils.copy(File.join(data, 'exceptions.ogg'), @@exceptions)
+ end
+
+ def TaglibTestsUtil.teardown
--
ruby-taglib2.git
More information about the Pkg-ruby-extras-commits
mailing list