diff --git a/toolbox-Sprinkle-a-debug-log.patch b/toolbox-Sprinkle-a-debug-log.patch new file mode 100644 index 0000000..ba6a3dd --- /dev/null +++ b/toolbox-Sprinkle-a-debug-log.patch @@ -0,0 +1,22 @@ +From cafbca996ec4a19f9f80bae109436e2dfc7149a4 Mon Sep 17 00:00:00 2001 +From: Debarshi Ray +Date: Wed, 1 Mar 2023 19:41:56 +0100 +Subject: [PATCH] cmd/root: Sprinkle a debug log + +https://github.com/containers/toolbox/pull/1251 +--- + src/cmd/root.go | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/cmd/root.go b/src/cmd/root.go +index 9975ccc7a..2e7428a20 100644 +--- a/src/cmd/root.go ++++ b/src/cmd/root.go +@@ -215,6 +215,7 @@ func migrate(cmd *cobra.Command, args []string) error { + logrus.Debug("Migrating to newer Podman") + + if utils.IsInsideContainer() { ++ logrus.Debug("Migration not needed: running inside a container") + return nil + } + diff --git a/toolbox.spec b/toolbox.spec index fa3975c..4f4b6ef 100644 --- a/toolbox.spec +++ b/toolbox.spec @@ -11,7 +11,7 @@ Version: 0.0.99.4 %gometa -f %endif -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tool for containerized command line environments on Linux License: ASL 2.0 @@ -20,6 +20,7 @@ Source0: https://github.com/containers/%{name}/releases/download/%{version # Upstream Patch0: toolbox-Don-t-use-podman-1-when-generating-the-comp.patch +Patch1: toolbox-Sprinkle-a-debug-log.patch # Fedora specific Patch100: toolbox-Make-the-build-flags-match-Fedora-s-gobuild.patch @@ -156,6 +157,7 @@ The %{name}-tests package contains system tests for %{name}. %prep %setup -q %patch0 -p1 +%patch1 -p1 %ifnarch ppc64 %patch100 -p1 @@ -213,6 +215,9 @@ export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_ %changelog +* Wed Mar 8 2023 Nieves Montero - 0.0.99.4-2 +- Sprinkle a debug log + * Wed Feb 22 2023 Debarshi Ray - 0.0.99.4-1 - Update to 0.0.99.4