[DRE-commits] [SCM] gem2deb.git branch, master, updated. debian/0.2.3-35-g72c44bc
Antonio Terceiro
terceiro at softwarelivre.org
Sun Jun 19 02:35:45 UTC 2011
The following commit has been merged in the master branch:
commit 1f68b1f43fa09b71a333cfbbf3e7eb900bffc320
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sat Jun 18 17:08:01 2011 -0700
Remove code that is never used
diff --git a/lib/gem2deb/dh_ruby.rb b/lib/gem2deb/dh_ruby.rb
index abf9bd3..4594ca1 100644
--- a/lib/gem2deb/dh_ruby.rb
+++ b/lib/gem2deb/dh_ruby.rb
@@ -298,7 +298,7 @@ module Gem2Deb
JUNK_PATTERNS = [ /^#/, /^\.#/, /^cvslog/, /^,/, /^\.del-*/, /\.olb$/,
/~$/, /\.(old|bak|BAK|orig|rej)$/, /^_\$/, /\$$/, /\.org$/, /\.in$/, /^\./ ]
- def find_files(dir, accept_pattern=nil)
+ def find_files(dir)
files = []
Dir::chdir(dir) do
Find::find('.') do |f|
@@ -311,11 +311,6 @@ module Gem2Deb
fb = File::basename(f)
next if (JUNK_FILES + HOOK_FILES).include?(fb)
next if JUNK_PATTERNS.select { |pat| fb =~ pat } != []
- # accept_pattern on this directory
- if File.file?(File.join(dir, f)) &&
- accept_pattern.is_a?(Regexp) && f.match(accept_pattern).nil?
- next
- end
files2 << f
end
(files - files2). each do |f|
--
gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list