1 |
commit: c61168bfea27afcc8daf85976f67e8a84db3427b |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 3 19:20:52 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 3 19:20:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c61168bf |
7 |
|
8 |
bin/chmod-lite: fix shebang and fallback python interpreter |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
bin/chmod-lite | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/bin/chmod-lite b/bin/chmod-lite |
16 |
index ffa8d4d23..8c62e2de7 100755 |
17 |
--- a/bin/chmod-lite |
18 |
+++ b/bin/chmod-lite |
19 |
@@ -1,4 +1,4 @@ |
20 |
-#!/bin/bash |
21 |
+#!@PORTAGE_BASH@ |
22 |
# Copyright 2015 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
@@ -7,4 +7,4 @@ export __PORTAGE_HELPER_CWD=${PWD} |
26 |
# Use safe cwd, avoiding unsafe import for bug #469338. |
27 |
cd "${PORTAGE_PYM_PATH}" || exit 1 |
28 |
PYTHONPATH=${PORTAGE_PYTHONPATH:-${PORTAGE_PYM_PATH}} \ |
29 |
- exec "${PORTAGE_PYTHON:-/usr/bin/python}" "$PORTAGE_BIN_PATH/chmod-lite.py" "$@" |
30 |
+ exec "${PORTAGE_PYTHON:-@PREFIX_PORTAGE_PYTHON@}" "$PORTAGE_BIN_PATH/chmod-lite.py" "$@" |