-build_rpm() +install_srpm() {
- local spec_file=${HOME}/rpmbuild/SPECS/$package_name.spec
- # HTTP is proxy cache friendly
- sed -i 's/^(Source[^ ]*:[ \t]*)https/\1http/g' `grep http -rl $spec_file`
- rpm -i "${repo_addr}/${upstream_repo}" >/dev/null || die "failed to install source rpm"
rpm -i "${repo_addr}/${upstream_repo}" >/dev/null || die "failed to install source rpm: ${repo_addr}/${upstream_repo}"
Thanks, Jiaxin