Skip to content

Commit

Permalink
Temporary fix for debian7 (elastic#11768)
Browse files Browse the repository at this point in the history
  • Loading branch information
ph authored Apr 11, 2019
1 parent 5f947e7 commit 6f1f994
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 @@ -253,7 +253,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 6f1f994

Please sign in to comment.