File: 0003-drop-git-usage-in-gemspec.patch

package info (click to toggle)
ruby-haml 7.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,996 kB
  • sloc: ruby: 9,939; sh: 23; makefile: 11
file content (24 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?utf-8?b?IkFuZHJldyBMZWUgKOadjuWBpeeniyki?= <ajqlee@debian.org>
Date: Wed, 21 Dec 2022 09:12:56 -0300
Subject: drop git usage in gemspec

Origin: Debian
Forwarded: not-needed
---
 haml.gemspec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/haml.gemspec b/haml.gemspec
index c771d31..787256b 100644
--- a/haml.gemspec
+++ b/haml.gemspec
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
   spec.homepage      = 'https://haml.info'
   spec.license       = 'MIT'
 
-  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sample|benchmark)/}) }
+  spec.files         = (Dir.glob('**/*') - Dir['debian/**/']).reject { |f| f.match(%r{^(test|spec|features|sample|benchmark)/}) }
+
   spec.bindir        = 'exe'
   spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
   spec.require_paths = ['lib']