summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/provider/package/yum.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum.rb b/lib/chef/provider/package/yum.rb
index 22ba5cb50a..f892ac089e 100644
--- a/lib/chef/provider/package/yum.rb
+++ b/lib/chef/provider/package/yum.rb
@@ -1,6 +1,6 @@
# Author:: Adam Jacob (<adam@chef.io>)
-# Copyright:: Copyright 2008-2017, Chef Software, Inc.
+# Copyright:: Copyright 2008-2017, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -359,6 +359,12 @@ class Chef
end
end
+ def action_flush_cache
+ @yum.reload
+ end
+
+ private
+
# Allow for foo.x86_64 style package_name like yum uses in it's output
def parse_arch(package_name)
if package_name =~ %r{^(.*)\.(.*)$}