File: drop-git-ls.patch

package info (click to toggle)
puppet-lint 2.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 964 kB
  • sloc: ruby: 10,278; sh: 16; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 1,064 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
Description: Fix the gemspec
 Don't use git-ls files in Gemspec. There is this warning during the build:
 Invalid gemspec in [puppet-lint.gemspec]: No such file or directory - git
Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2016-09-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: puppet-lint/puppet-lint.gemspec
===================================================================
--- puppet-lint.orig/puppet-lint.gemspec
+++ puppet-lint/puppet-lint.gemspec
@@ -9,9 +9,9 @@ Gem::Specification.new do |s|
   s.description = 'Checks your Puppet manifests against the Puppetlabs
   style guide and alerts you to any discrepancies.'
 
-  s.files = `git ls-files`.split("\n")
-  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
-  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
+  s.files = Dir.glob('**/*')
+  s.test_files = Dir.glob('spec/**/*')
+  s.executables = Dir.glob('bin/*').map{ |f| File.basename(f) }
   s.require_paths = ['lib']
 
   s.authors = ['Tim Sharpe']