Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-support / puppet / files / puppet / puppet-poky-yum.patch
1 diff -ru a/lib/puppet/provider/package/yum.rb b/lib/puppet/provider/package/yum.rb
2 --- a/lib/puppet/provider/package/yum.rb        2020-03-05 20:30:49.582624408 +0800
3 +++ b/lib/puppet/provider/package/yum.rb        2020-03-05 21:13:39.870694454 +0800
4 @@ -24,6 +24,7 @@
5    end
6  
7    defaultfor :osfamily => :redhat
8 +  defaultfor :operatingsystem => :"poky-stx"
9  
10    def self.prefetch(packages)
11      raise Puppet::Error, _("The yum provider can only be used as root") if Process.euid != 0