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

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) ===
This fixes the regex which updates the repos for edge releases.

This fixes https://github.com/lxc/lxc-ci/issues/107.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From e049047eec2e024700115ba45a335e69b6d108b9 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Tue, 28 Jan 2020 10:56:19 +0100
Subject: [PATCH] sources/alpine: Fix regex

This fixes the regex which updates the repos for edge releases.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 sources/alpine-http.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sources/alpine-http.go b/sources/alpine-http.go
index b32ea1d..ecb95a6 100644
--- a/sources/alpine-http.go
+++ b/sources/alpine-http.go
@@ -103,7 +103,7 @@ func (s *AlpineLinuxHTTP) Run(definition shared.Definition, 
rootfsDir string) er
                        return err
                }
 
-               err = shared.RunCommand("sed", "-i", "-e", 
"s/v[[:digit:]]\\.[[:digit:]]+/edge/g", "/etc/apk/repositories")
+               err = shared.RunCommand("sed", "-i", "-e", 
"s/v[[:digit:]]\\.[[:digit:]]\\+/edge/g", "/etc/apk/repositories")
                if err != nil {
                        exitChroot()
                        return err
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to