File: do_not_use_git_ls-files.patch

package info (click to toggle)
ruby-notiffany 0.1.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: ruby: 3,094; makefile: 8; sh: 2
file content (18 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: do not use `git ls-files`
Author: HIGUCHI Daisuke (VDR dai) <dai@debian.org>
Forwarded: not-needed
Last-Update: 2019-08-04

Index: ruby-notiffany/notiffany.gemspec
===================================================================
--- ruby-notiffany.orig/notiffany.gemspec
+++ ruby-notiffany/notiffany.gemspec
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
   spec.homepage      = "https://github.com/guard/notiffany"
   spec.license       = "MIT"
 
-  git_files = `git ls-files -z`.split("\x0")
+  git_files = Dir['**/*'].reject { |f| f =~ %r{^debian/} }
   files = git_files.select { |f| %r{^lib/.*$} =~ f }
   files += %w(README.md LICENSE.txt)