diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-02-08 13:48:50 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-02-08 13:50:55 -0800 |
commit | c763dcfdf4352f8bba2b39f533fb5c223a233f43 (patch) | |
tree | c7d03af65e68c7721ff9000aa46262c656bd0d2d | |
parent | c13a9877e0a2dd54042550c2a787cbda4247acbe (diff) | |
download | chef-lcg/add-yum-tests.tar.gz |
add action_flush_cachelcg/add-yum-tests
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/provider/package/yum.rb | 8 |
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{^(.*)\.(.*)$} |