Files
termux-packages/packages/nala/nala-__init__.py.patch
termux-pacman-bot 3cd70c794d chore(main/nala): mv python version sourcing inside function
To prevent warning/error if build.sh is sourced outside of
build-package.sh.
2022-10-31 08:11:55 +00:00

16 lines
405 B
Diff

--- a/nala/__init__.py
+++ b/nala/__init__.py
@@ -30,9 +30,9 @@
# ROOT = "@TERMUX_PREFIX@"
# USR = "@TERMUX_PREFIX@"
# TERMUX = True
-ROOT = ""
-USR = "/usr"
-TERMUX = False
+ROOT = "@TERMUX_PREFIX@"
+USR = "@TERMUX_PREFIX@"
+TERMUX = True
# Before we import anything else we need to make sure that this is in our path
# Else apt_pkg will give an import error. Conda is an example of this breaking