From 619ea38c17c57788aa3d26fd007fa4bef4c106d2 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 15 Jan 2018 19:29:27 +0100 Subject: [PATCH] acmetool: fix patch: panic when uuid.NewV4() fails --- srcpkgs/acmetool/patches/fix-uuid-build.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srcpkgs/acmetool/patches/fix-uuid-build.patch b/srcpkgs/acmetool/patches/fix-uuid-build.patch index 66f1c459866..151f776332d 100644 --- a/srcpkgs/acmetool/patches/fix-uuid-build.patch +++ b/srcpkgs/acmetool/patches/fix-uuid-build.patch @@ -1,12 +1,11 @@ --- storage/types.go.orig 2018-01-11 08:57:49.339089353 +0100 +++ storage/types.go 2018-01-11 08:58:12.707027749 +0100 -@@ -194,7 +194,8 @@ func (tgt *Target) ensureFilename() { +@@ -194,7 +194,7 @@ func (tgt *Target) ensureFilename() { nprefix = tgt.Satisfy.Names[0] + "-" } - b := uuid.NewV4().Bytes() -+ u, _ := uuid.NewV4() -+ b := u.Bytes() ++ b := uuid.Must(uuid.NewV4()).Bytes() str := strings.ToLower(strings.TrimRight(base32.StdEncoding.EncodeToString(b), "=")) tgt.Filename = nprefix + str