require 'travis/build/appliances/base'

module Travis
  module Build
    module Appliances
      class UpdateGlibc < Base
        def apply
          sh.fold "fix.CVE-2015-7547" do
            sh.export 'DEBIAN_FRONTEND', 'noninteractive'
            sh.cmd <<-EOF
if [ ! $(uname|grep Darwin) ]; then
  sudo -E apt-get -yq update &>> ~/apt-get-update.log
  sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install libc6
fi
            EOF
          end
        end
      end
    end
  end
end


require 'travis/build/appliances/base'

module Travis
  module Build
    module Appliances
      class UpdateGlibc < Base
        def apply
          sh.fold "fix.CVE-2015-7547" do
            sh.export 'DEBIAN_FRONTEND', 'noninteractive'
            sh.cmd <<-EOF
if [ ! $(uname|grep Darwin) ]; then
  sudo -E apt-get -yq update 2>&1 >> ~/apt-get-update.log
  sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install libc6
fi
            EOF
          end
        end
      end
    end
  end
end


Rewrite I/O redirection more generically
Rewrite I/O redirection more generically
