File: find-binary.patch

package info (click to toggle)
ruby-eye 0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, stretch
  • size: 672 kB
  • ctags: 736
  • sloc: ruby: 5,003; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: search for binaries also in their standard install location
Author: Cédric Boutillier <boutil@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