2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-26 13:10:35 +00:00

Fix issue caused by pull request #1400. Add remote URL as Ubuntu repo properly.

This commit is contained in:
GONG Jie
2016-07-04 13:06:19 +08:00
parent e5fe8da533
commit 60d988b9d4

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
;;