summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-01-26 14:14:55 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-03-15 18:03:29 -0700
commitfdc04fe535b2515b71fa3e5b9528d0be7b4873eb (patch)
treea2394c2ad605457ea0b89c905c7e69c462f03cfe
parent5980a3eb1b3f56e01b81089fa3f53c6809e8ad40 (diff)
downloadchef-fdc04fe535b2515b71fa3e5b9528d0be7b4873eb.tar.gz
add comment warning people to not use these utilities
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/provider/package/yum/rpm_utils.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum/rpm_utils.rb b/lib/chef/provider/package/yum/rpm_utils.rb
index 0709118184..eefc0b95b2 100644
--- a/lib/chef/provider/package/yum/rpm_utils.rb
+++ b/lib/chef/provider/package/yum/rpm_utils.rb
@@ -1,6 +1,6 @@
# Author:: Adam Jacob (<adam@chef.io>)
-# Copyright:: Copyright 2008-2016, Chef Software, Inc.
+# Copyright:: Copyright 2008-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,6 +18,15 @@
require "chef/provider/package"
+#
+# BUGGY AND DEPRECATED: This ruby code is known to not match the python implementation for version comparisons.
+# The APIs here should probably be converted to talk to the PythonHelper or just abandonded completely.
+#
+# e.g. this should just use Chef::Provider::Package::Yum::PythonHelper.instance.compare_versions(x,y)
+#
+# The python_helper could be extended to support additional APIs in here to remove the ruby code entirely.
+#
+
class Chef
class Provider
class Package