The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/342

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===

From 2c4833d2d725e1eb55d8c2846e82e4e021bd7534 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Mon, 15 Jun 2020 17:01:17 +0200
Subject: [PATCH] sources/opensuse: Fix x86 tarballs

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 sources/opensuse-http.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sources/opensuse-http.go b/sources/opensuse-http.go
index 7267de0..bccdfc1 100644
--- a/sources/opensuse-http.go
+++ b/sources/opensuse-http.go
@@ -179,6 +179,11 @@ func (s *OpenSUSEHTTP) getTarballName(u *url.URL, release, 
arch string) string {
                return ""
        }
 
+       // Translate x86 architectures.
+       if strings.HasSuffix(arch, "86") {
+               arch = "ix86"
+       }
+
        nodes := htmlquery.Find(doc, `//a/@href`)
        re := 
regexp.MustCompile(fmt.Sprintf("^opensuse-%s-image.*%s.*\\.tar.xz$", release, 
arch))
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to