File: name-changes.patch

package info (click to toggle)
python-gnatpython 54-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 628 kB
  • ctags: 590
  • sloc: python: 3,056; ansic: 1,477; makefile: 38
file content (23 lines) | stat: -rw-r--r-- 776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Since rlimt is shipped as gnatpython-rlimit, fileutils need to be
fixed to give the right path
Also change gnatpython to python, since gnatpython isn't available
in debian

--- a/gnatpython/fileutils.py
+++ b/gnatpython/fileutils.py
@@ -1090,6 +1090,6 @@
     if Env().host.os.name.lower() == 'windows':
         path = get_path(os.path.join('Scripts', 'rlimit'))
     else:
-        path = get_path(os.path.join('bin', 'rlimit'))
+        path = get_path(os.path.join('bin', 'gnatpython-rlimit'))
 
     return path or which("rlimit" + Env().host.os.exeext)
--- a/examples/echo_testsuite/run-test
+++ b/examples/echo_testsuite/run-test
@@ -1,4 +1,4 @@
-#!/usr/bin/env gnatpython
+#!/usr/bin/env python
 """Usage: run-test [options] test_dir
 
 Run a test located in test_dir