File: adjust-script-path.patch

package info (click to toggle)
octocatalog-diff 1.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,340 kB
  • sloc: ruby: 5,873; sh: 16; makefile: 13
file content (16 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Apollon Oikonomopoulos <apoikos@debian.org>
Description: Search for scripts under /usr/share/octocatalog-diff
 ... rather than /usr/lib/ruby/scripts
Last-Update: 2017-10-17
Forwarded: no (Debian-specific)
--- a/lib/octocatalog-diff/util/scriptrunner.rb
+++ b/lib/octocatalog-diff/util/scriptrunner.rb
@@ -108,7 +108,7 @@
       # @return [String] Full path to script
       def find_script(default_script, override_script_path = nil)
         script = find_script_from_override_path(default_script, override_script_path) ||
-                 File.expand_path("../../../scripts/#{default_script}", File.dirname(__FILE__))
+                 "/usr/share/octocatalog-diff/scripts/#{default_script}"
         raise Errno::ENOENT, "Unable to locate script '#{script}'" unless File.file?(script)
         script
       end