summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-04-30 12:44:52 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-04-30 12:44:52 -0700
commitb3b2e354248bf540f2c04ba0fc32ff7929546c07 (patch)
tree2fd8fb90380428ba9f4a078925f730e7b2cdc51c
parentc2c3ac6af00e01029228b2ac84e4b50599a3098d (diff)
downloadchef-b3b2e354248bf540f2c04ba0fc32ff7929546c07.tar.gz
Update comments
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/provider/package/yum/python_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum/python_helper.rb b/lib/chef/provider/package/yum/python_helper.rb
index 19716ab06c..86aaf7230a 100644
--- a/lib/chef/provider/package/yum/python_helper.rb
+++ b/lib/chef/provider/package/yum/python_helper.rb
@@ -51,6 +51,8 @@ class Chef
end
def start
+ # For some reason we have to force python to unbuffered here, and then force the input pipe back to line
+ # buffered in the python code. XXX: I tried to remove this but hit more issues in the python side.
ENV["PYTHONUNBUFFERED"] = "1"
@inpipe, inpipe_write = IO.pipe
outpipe_read, @outpipe = IO.pipe
@@ -121,7 +123,7 @@ class Chef
parameters = { "provides" => provides, "version" => version, "arch" => arch }
repo_opts = options_params(options || {})
parameters.merge!(repo_opts)
- # XXX: for now we before and after every query with an enablerepo/disablerepo to clean the helpers internal state
+ # XXX: for now we close the rpmdb before and after every query with an enablerepo/disablerepo to clean the helpers internal state
close_rpmdb unless repo_opts.empty?
query_output = query(action, parameters)
version = parse_response(query_output.lines.last)