Skip to content

Commit

Permalink
fix apt-key deprecation for mono-complete repo gpg key
Browse files Browse the repository at this point in the history
- vim YCM deps
  • Loading branch information
mr-pmillz committed Jun 10, 2022
1 parent da3d918 commit b2db23d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions vim/vim.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package vim
import (
"embed"
"fmt"
"runtime"

"github.com/google/periph/host/distro"
"github.com/mr-pmillz/pimp-my-shell/localio"
Expand Down Expand Up @@ -173,7 +174,11 @@ func InstallVimAwesome(osType string, dirs *localio.Directories, packages *local
if err := localio.RunCommandPipeOutput("sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \"3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\" || true"); err != nil {
return err
}
if err := localio.RunCommandPipeOutput("echo \"deb https://download.mono-project.com/repo/ubuntu stable-focal main\" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list || true"); err != nil {
if err := localio.RunCommandPipeOutput("sudo apt-key export D3D831EF | sudo gpg --dearmour -o /usr/share/keyrings/xamarin-public-jenkins.gpg || true"); err != nil {
return err
}
archType := runtime.GOARCH
if err := localio.RunCommandPipeOutput(fmt.Sprintf("echo \"deb [arch=%s signed-by=/usr/share/keyrings/xamarin-public-jenkins.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main\" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list || true", archType)); err != nil {
return err
}
if err := localio.RunCommandPipeOutput("sudo apt-get update -y"); err != nil {
Expand All @@ -194,7 +199,11 @@ func InstallVimAwesome(osType string, dirs *localio.Directories, packages *local
if err := localio.RunCommandPipeOutput("sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \"3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\" || true"); err != nil {
return err
}
if err := localio.RunCommandPipeOutput("echo \"deb https://download.mono-project.com/repo/debian stable-buster main\" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list || true"); err != nil {
if err := localio.RunCommandPipeOutput("sudo apt-key export D3D831EF | sudo gpg --dearmour -o /usr/share/keyrings/xamarin-public-jenkins.gpg || true"); err != nil {
return err
}
archType := runtime.GOARCH
if err := localio.RunCommandPipeOutput(fmt.Sprintf("echo \"deb [arch=%s signed-by=/usr/share/keyrings/xamarin-public-jenkins.gpg] https://download.mono-project.com/repo/debian stable-buster main\" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list || true", archType)); err != nil {
return err
}
if err := localio.RunCommandPipeOutput("sudo apt-get update -y"); err != nil {
Expand Down

0 comments on commit b2db23d

Please sign in to comment.