2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #1460 from neo954/go-xcat.2

Fix issue caused by pull request #1400. Add remote URL as Ubuntu repo properly
This commit is contained in:
Xiaopeng Wang 2016-07-04 13:33:50 +08:00 committed by GitHub
commit e285963e70

View File

@ -736,7 +736,8 @@ function add_repo_by_url_yum_or_zypper()
enabled=1
gpgcheck=0
EOF
url="${tmp}"
add_repo_by_file "${tmp}" "${repo_id}"
return "$?"
;;
esac
;;
@ -804,7 +805,8 @@ function add_repo_by_url_apt()
*) # assume it is the base url of the repo
tmp="${TMP_DIR}/tmp_repo.list"
echo "deb [arch=$(dpkg --print-architecture)] ${url} ${codename} main" >"${tmp}"
url="${tmp}"
add_repo_by_file_apt "${tmp}" "${repo_id}"
return "$?"
;;
esac
;;