File: 0001-embed-python-file-path.patch

package info (click to toggle)
ruby-license-finder 7.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,368 kB
  • sloc: ruby: 6,017; sh: 144; python: 31; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 880 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
From: TANIGUCHI Takaki <takaki@debian.org>
Date: Sat, 9 Apr 2022 00:15:37 +0900
Subject: embed python file path

---
 lib/license_finder/package_managers/pip.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/license_finder/package_managers/pip.rb b/lib/license_finder/package_managers/pip.rb
index a4199bf..31b6c2a 100644
--- a/lib/license_finder/package_managers/pip.rb
+++ b/lib/license_finder/package_managers/pip.rb
@@ -54,7 +54,7 @@ module LicenseFinder
     private
 
     def pip_output
-      command = "python#{@python_version == '2' ? '' : '3'} #{LicenseFinder::BIN_PATH.join('license_finder_pip.py')} #{detected_package_path}"
+      command = "python#{@python_version == '2' ? '' : '3'} /usr/share/ruby-license-finder/license_finder_pip.py #{detected_package_path}"
       stdout, stderr, status = Cmd.run(command)
 
       if status.success?