From c1efcf741087860c05ecadb6a189c5cf49d99bc0 Mon Sep 17 00:00:00 2001 From: Lu Jingxiao Date: Wed, 12 Jan 2022 15:49:33 +0800 Subject: [PATCH] isula-build: fix apply patch failing before compiling Patch apply failed because in patch 0088, the pkgs sorting in daemon/load.go is not ordered by lexicographical, so patch 0102 apply failed. Signed-off-by: Lu Jingxiao (cherry picked from commit ab776685a6be7c92e852c148fedda206b3375d78) --- VERSION-openeuler | 2 +- git-commit | 2 +- isula-build.spec | 8 +++++++- ...ix-loaded-images-cover-existing-images-name-and-.patch | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/VERSION-openeuler b/VERSION-openeuler index 1b75e1a..331ab90 100644 --- a/VERSION-openeuler +++ b/VERSION-openeuler @@ -1 +1 @@ -0.9.5-24 +0.9.5-25 diff --git a/git-commit b/git-commit index 1bf6671..8df0f1f 100644 --- a/git-commit +++ b/git-commit @@ -1 +1 @@ -df4e990bc3b46523e9cc92d132d8948e50ef7979 +ccece5d21f168013a2a5b6e712d1837ecb9bde37 diff --git a/isula-build.spec b/isula-build.spec index 172b25d..c5e41ff 100644 --- a/isula-build.spec +++ b/isula-build.spec @@ -2,7 +2,7 @@ Name: isula-build Version: 0.9.5 -Release: 24 +Release: 25 Summary: A tool to build container images License: Mulan PSL V2 URL: https://gitee.com/openeuler/isula-build @@ -85,6 +85,12 @@ fi /usr/share/bash-completion/completions/isula-build %changelog +* Wed Jan 12 2022 Lu Jingxiao - 0.9.5-25 +- Type:bugfix +- CVE:NA +- SUG:restart +- DESC:fix apply patch failing before compiling + * Tue Jan 11 2022 jingxiaolu - 0.9.5-24 - Type:enhancement - CVE:NA diff --git a/patch/0088-bugfix-loaded-images-cover-existing-images-name-and-.patch b/patch/0088-bugfix-loaded-images-cover-existing-images-name-and-.patch index ad75be5..b1043ee 100644 --- a/patch/0088-bugfix-loaded-images-cover-existing-images-name-and-.patch +++ b/patch/0088-bugfix-loaded-images-cover-existing-images-name-and-.patch @@ -14,10 +14,10 @@ index 41690ab..b6d675b 100644 --- a/daemon/load.go +++ b/daemon/load.go @@ -17,6 +17,8 @@ import ( ++ "context" "io/ioutil" "os" "path/filepath" -+ "context" + "strings" "github.com/containers/image/v5/docker/tarfile"