[DRE-commits] [ruby-eye] 02/04: search for binaries in install locations too
Cédric Boutillier
boutil at moszumanska.debian.org
Mon Jun 27 21:05:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-eye.
commit 67168edb5df85f107d4a710c653c314c5d8c0dbc
Author: Cédric Boutillier <boutil at debian.org>
Date: Mon Jun 27 23:01:04 2016 +0200
search for binaries in install locations too
---
debian/patches/find-binary.patch | 15 +++++++++++++++
debian/patches/series | 2 ++
2 files changed, 17 insertions(+)
diff --git a/debian/patches/find-binary.patch b/debian/patches/find-binary.patch
new file mode 100644
index 0000000..33ae5aa
--- /dev/null
+++ b/debian/patches/find-binary.patch
@@ -0,0 +1,15 @@
+Description: search for binaries also in their standard install location
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2016-06-27
+
+--- a/lib/eye/cli/server.rb
++++ b/lib/eye/cli/server.rb
+@@ -9,6 +9,7 @@
+
+ def loader_path
+ filename = File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. .. bin loader_eye]))
++ filename = "/usr/bin/loader_eye" unless File.exist?(filename)
+ File.exist?(filename) ? filename : nil
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..91c7049
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+find-binary.patch
+state-machines.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-eye.git
More information about the Pkg-ruby-extras-commits
mailing list