Sha256: 16332f7d4786d0550e726b09a689c01d89d24f7a93f9346f4dc4219b5ac88073
Contents?: true
Size: 763 Bytes
Versions: 122
Compression:
Stored size: 763 Bytes
Contents
# DEB methods used by various libraries and rake tasks module Pkg::Deb require 'packaging/deb/repo' class << self def set_cow_envs(cow) elements = /base-(.*)-(.*)\.cow/.match(cow) if elements.nil? fail "Didn't get a matching cow, e.g. 'base-squeeze-i386'" end dist = elements[1] arch = elements[2] if Pkg::Config.build_pe ENV['PE_VER'] = Pkg::Config.pe_version end if Pkg::Config.deb_build_mirrors ENV['BUILDMIRROR'] = Pkg::Config.deb_build_mirrors.map do |mirror| mirror.gsub(/__DIST__/, dist) end.join(' | ') end ENV['DIST'] = dist ENV['ARCH'] = arch if dist =~ /cumulus/ ENV['NETWORK_OS'] = 'cumulus' end end end end
Version data entries
122 entries across 122 versions & 1 rubygems