Project

General

Profile

« Previous | Next » 

Revision c781bb1a

Added by Ohad Levy about 14 years ago

  • ID c781bb1ac931d7f9a6aa87b8c7be86ed3f179c5b

fixes #246 - add kickstart compatibility with RHE6 and minor fixes for ftp based urls

View differences:

lib/family.rb
def mediapath host
uri = media_uri(host)
server = uri.select(:host, :port).compact.join(':')
dir = uri.select(:path, :query).compact.join('?')
dir = uri.select(:path, :query).compact.join('?') unless uri.scheme == 'ftp'
case uri.scheme
when 'http', 'https', 'ftp'
......
epel_url.gsub!("$os","4-9")
when "5"
epel_url.gsub!("$os","5-3")
when "6"
epel_url.gsub!("$os","6-1").
gsub!("/pub/epel/","/pub/epel/beta/") # workaround for hardcoded beta in url, should be remove once RH6 is released
else
return ""
end
return "su -c 'rpm -Uvh #{media_uri(host, epel_url)}"
return "su -c 'rpm -Uvh #{media_uri(host, epel_url)}'"
end
def yumrepo host

Also available in: Unified diff