summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Redhat/Command/_dnf4
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a76e6e06c..aae863ba1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
 2017-11-13  Oliver Kiddle  <opk@zsh.org>
 
-	* github #19: Chris Bracken: Fix minor typo in
-	INC_APPEND_HISTORY documentation
+	* github #18: Malcolm Ramsay: Completion/Redhat/Command/_dnf:
+	Explicitly use system python so the dnf module can be found
+
+	* github #19: Chris Bracken: Doc/Zsh/options.yo: Fix minor typo
+	in INC_APPEND_HISTORY documentation
 
 2017-11-11  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
diff --git a/Completion/Redhat/Command/_dnf b/Completion/Redhat/Command/_dnf
index 35b5aa27b..82b9b188f 100644
--- a/Completion/Redhat/Command/_dnf
+++ b/Completion/Redhat/Command/_dnf
@@ -38,9 +38,9 @@ _dnf_local_packages() {
 
 _dnf() {
   if [[ "$(readlink /usr/bin/dnf)" == "dnf-2" ]]; then
-    local python_exec="python2"
+    local python_exec="/usr/bin/python2"
   else
-    local python_exec="python3"
+    local python_exec="/usr/bin/python3"
   fi
   local helper=$(${python_exec} -c "import dnf.cli; print('{}/completion_helper.py'.format(dnf.cli.__path__[0]))")
   local cache_file="/var/cache/dnf/packages.db"