From 60d988b9d43455898c2600091dcd3eabdc4e885b Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Mon, 4 Jul 2016 13:06:19 +0800 Subject: [PATCH] Fix issue caused by pull request #1400. Add remote URL as Ubuntu repo properly. --- xCAT-server/share/xcat/tools/go-xcat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index d1c5d7cb6..17f689f65 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -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 ;;