[DRE-commits] [ruby-cucumber-rails] 08/08: don't use git to read package contents

Antonio Terceiro terceiro at moszumanska.debian.org
Thu Oct 29 20:06:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-cucumber-rails.

commit 51623a2ed6cb5da64306245cde8b28c2d4e2d051
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Thu Oct 29 18:01:22 2015 -0200

    don't use git to read package contents
    
    source packages are not git repositories
---
 debian/changelog                                  |  2 ++
 debian/patches/0002-gemspec-avoid-using-git.patch | 24 +++++++++++++++++++++++
 debian/patches/series                             |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1b406d0..26c888f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,5 +3,7 @@ ruby-cucumber-rails (1.4.2-1) UNRELEASED; urgency=medium
   * Initial release (Closes: #nnnn)
   * debian/patches/0001-Allow-cucumber-2.0.patch: allow cucumber 2.0 as was
     done upstream (but not released yet)
+  * debian/patches/0002-gemspec-avoid-using-git.patch: don't use git to read
+    package contents as source packages are not git repositories.
 
  -- Antonio Terceiro <terceiro at debian.org>  Thu, 29 Oct 2015 17:05:33 -0200
diff --git a/debian/patches/0002-gemspec-avoid-using-git.patch b/debian/patches/0002-gemspec-avoid-using-git.patch
new file mode 100644
index 0000000..c9d9f05
--- /dev/null
+++ b/debian/patches/0002-gemspec-avoid-using-git.patch
@@ -0,0 +1,24 @@
+From: Antonio Terceiro <terceiro at softwarelivre.org>
+Date: Thu, 29 Oct 2015 18:00:10 -0200
+Subject: gemspec: avoid using git
+
+---
+ cucumber-rails.gemspec | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/cucumber-rails.gemspec b/cucumber-rails.gemspec
+index 0be064c..ed13707 100644
+--- a/cucumber-rails.gemspec
++++ b/cucumber-rails.gemspec
+@@ -36,8 +36,8 @@ Gem::Specification.new do |s|
+   s.add_development_dependency('yard', '>= 0.8.7')
+ 
+   s.rubygems_version = ">= 1.6.1"
+-  s.files            = `git ls-files`.split("\n")
+-  s.test_files       = `git ls-files -- {spec,features}/*`.split("\n")
+-  s.executables      = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
++  s.files            = Dir.glob('**/*') - Dir.glob('debian/**/*')
++  s.test_files       = Dir.glob('spec/**/*')
++  s.executables      = Dir.glob('bin/*').map{ |f| File.basename(f) }
+   s.require_path     = "lib"
+ end
diff --git a/debian/patches/series b/debian/patches/series
index addb3b8..410f090 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Allow-cucumber-2.0.patch
+0002-gemspec-avoid-using-git.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-cucumber-rails.git



More information about the Pkg-ruby-extras-commits mailing list