File: 0001-Remove-gemspec-git-ls-files.patch

package info (click to toggle)
ruby-pygments.rb 2.4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: ruby: 530; python: 139; makefile: 10; sh: 4
file content (23 lines) | stat: -rw-r--r-- 799 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Date: Thu, 30 Nov 2023 00:19:53 +0100
Subject: Remove git ls-files usage from gemspec file

Origin: other
Last-Update: 2022-01-06

Last-Update: 2022-01-06
---
 pygments.rb.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pygments.rb.gemspec b/pygments.rb.gemspec
index da7f6cd..050a474 100644
--- a/pygments.rb.gemspec
+++ b/pygments.rb.gemspec
@@ -28,5 +28,5 @@ Gem::Specification.new do |s|
   s.add_development_dependency 'rubocop', '~> 1.28.2'
   s.add_development_dependency 'test-unit', '~> 3.6.0'
 
-  s.files = `git ls-files -z`.split("\0").reject { |f| File.symlink?(f) }
+  s.files = (Dir.glob('**/*', File::FNM_DOTMATCH) - Dir.glob('debian/**/*', File::FNM_DOTMATCH)).reject { |f| File.directory?(f) }
 end