Skip to content

Commit

Permalink
Perforce repository key fix (#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-cs authored and vitalie committed Aug 18, 2023
1 parent 70094bf commit dae4633
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/travis/build/appliances.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
require 'travis/build/appliances/env'
require 'travis/build/appliances/etc_hosts_pinning'
require 'travis/build/appliances/fix_wwdr_certificate'
require 'travis/build/appliances/fix_perforce_key'
require 'travis/build/appliances/rm_riak_source'
require 'travis/build/appliances/fix_rwky_redis'
require 'travis/build/appliances/update_glibc'
Expand Down
15 changes: 15 additions & 0 deletions lib/travis/build/appliances/fix_perforce_key.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'travis/build/appliances/base'

module Travis
module Build
module Appliances
class FixPerforceKey < Base
def apply
sh.if "! $(command -v sw_vers)" do
sh.cmd "wget -qO - https://package.perforce.com/perforce.pubkey | sudo apt-key add -", assert: false, echo: false
end
end
end
end
end
end
1 change: 1 addition & 0 deletions lib/travis/build/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ def configure
apply :no_ipv6_localhost
apply :fix_etc_mavenrc
apply :etc_hosts_pinning
apply :fix_perforce_key
apply :fix_wwdr_certificate
apply :put_localhost_first
apply :home_paths
Expand Down

0 comments on commit dae4633

Please sign in to comment.