Module: Pkg::Deb
- Defined in:
- lib/packaging/deb.rb
Overview
DEB methods used by various libraries and rake tasks
Defined Under Namespace
Modules: Repo
Class Method Summary collapse
Class Method Details
.set_cow_envs(cow) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/packaging/deb.rb', line 6 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 |