mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
obs: distros: Update ubuntu repositories
When CI (re)create repos, this does not provide ubuntu updates. - Ubuntu 16.04 requiere enable more repositories to get latest gcc and allow build with golang. - Add support to define multiple repositories Repositories are comma separated in distros file. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
faf9d846bf
commit
2c624b12e1
@ -69,14 +69,24 @@ read_maintainers(){
|
|||||||
create_repos_xml_nodes() {
|
create_repos_xml_nodes() {
|
||||||
for entry in "${repos[@]}"; do
|
for entry in "${repos[@]}"; do
|
||||||
[ -z "$entry" ] && die "found empty entry"
|
[ -z "$entry" ] && die "found empty entry"
|
||||||
local name=$(echo "$entry" | awk -F"::" '{print $1;}')
|
|
||||||
local project=$(echo "$entry" | awk -F"::" '{print $2;}')
|
local name
|
||||||
local repository=$(echo "$entry" | awk -F"::" '{print $3;}')
|
local project
|
||||||
|
local repositories
|
||||||
|
name=$(echo "$entry" | awk -F"::" '{print $1;}')
|
||||||
|
project=$(echo "$entry" | awk -F"::" '{print $2;}')
|
||||||
|
repositories=$(echo "$entry" | awk -F"::" '{print $3;}')
|
||||||
|
|
||||||
[ -z "$name" ] && die "no name for entry '$entry'"
|
[ -z "$name" ] && die "no name for entry '$entry'"
|
||||||
[ -z "$project" ] && die "no project for entry '$entry'"
|
[ -z "$project" ] && die "no project for entry '$entry'"
|
||||||
[ -z "$repository" ] && die "no repository for entry '$entry'"
|
[ -z "$repositories" ] && die "no repository for entry '$entry'"
|
||||||
|
|
||||||
echo " <repository name=\"${name}\">"
|
echo " <repository name=\"${name}\">"
|
||||||
echo " <path project=\"${project}\" repository=\"${repository}\"/>"
|
|
||||||
|
echo "${repositories}"| tr ',' '\n' | while read -r repository; do
|
||||||
|
echo " <path project=\"${project}\" repository=\"${repository}\"/>"
|
||||||
|
done
|
||||||
|
|
||||||
arch_target_obs=${arch_target}
|
arch_target_obs=${arch_target}
|
||||||
if [ "$arch_target" == "ppc64" ]; then
|
if [ "$arch_target" == "ppc64" ]; then
|
||||||
arch_target_obs="ppc64le"
|
arch_target_obs="ppc64le"
|
||||||
|
@ -13,5 +13,5 @@ SLE_12_SP3::SUSE:SLE-12-SP3:GA::standard
|
|||||||
openSUSE_Leap_42.3::openSUSE:Leap:42.3::standard
|
openSUSE_Leap_42.3::openSUSE:Leap:42.3::standard
|
||||||
openSUSE_Leap_15.0::openSUSE:Leap:15.0::standard
|
openSUSE_Leap_15.0::openSUSE:Leap:15.0::standard
|
||||||
openSUSE_Tumbleweed::openSUSE:Factory::snapshot
|
openSUSE_Tumbleweed::openSUSE:Factory::snapshot
|
||||||
xUbuntu_16.04::Ubuntu:16.04::universe
|
xUbuntu_16.04::Ubuntu:16.04::universe,universe-update,update
|
||||||
xUbuntu_18.04::Ubuntu:18.04::universe
|
xUbuntu_18.04::Ubuntu:18.04::universe
|
||||||
|
Loading…
Reference in New Issue
Block a user