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:
commit
e285963e70
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user