[lxc-devel] [distrobuilder/master] sources/alpine: Fix regex

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Jan 28 10:00:59 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 487 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200128/65b34181/attachment-0001.bin>
-------------- next part --------------
From e049047eec2e024700115ba45a335e69b6d108b9 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at 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.hipp at 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


More information about the lxc-devel mailing list