Skip to content

Commit

Permalink
Temporary fix for debian7 (elastic#11768)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6f1f994)
  • Loading branch information
ph committed Apr 11, 2019
1 parent 4f1d8c4 commit 28c38f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x-pack/auditbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ func installDependencies(pkg, arch string) error {
}
}

if err := sh.Run("apt-get", "update"); err != nil {
// TODO: This is only for debian 7 and should be removed when move to a newer OS. This flag is
// going to be used unnecessary when building using non-debian7 images
// (like when making the linux/arm binaries) and we should remove it soonish.
// See https://github.com/elastic/beats/issues/11750 for more details.
if err := sh.Run("apt-get", "update", "-o", "Acquire::Check-Valid-Until=false"); err != nil {
return err
}

Expand Down

0 comments on commit 28c38f0

Please sign in to comment.