diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 11:40:42 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 11:40:42 +0000 |
commit | a625efe29cec7f7c437cf33a956ea99eed1e4bd9 (patch) | |
tree | 3132969a9e093b34d3bd91ee6110a1111a965630 /app-containers/incus/files | |
parent | 1ff514162358897632ab329134c6bc75af618f10 (diff) |
gentoo auto-resync : 24:02:2024 - 11:40:42
Diffstat (limited to 'app-containers/incus/files')
-rw-r--r-- | app-containers/incus/files/incus-0.6-fix-column-handling-with-all-projects.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-containers/incus/files/incus-0.6-fix-column-handling-with-all-projects.patch b/app-containers/incus/files/incus-0.6-fix-column-handling-with-all-projects.patch new file mode 100644 index 000000000000..75e85331f776 --- /dev/null +++ b/app-containers/incus/files/incus-0.6-fix-column-handling-with-all-projects.patch @@ -0,0 +1,41 @@ +From bbc4b946355775606da35557e5404ca83a586c67 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber@stgraber.org> +Date: Thu, 22 Feb 2024 22:41:15 -0500 +Subject: [PATCH] incus/image: Fix column handling with --all-projects +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Stéphane Graber <stgraber@stgraber.org> +--- + cmd/incus/image.go | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/cmd/incus/image.go b/cmd/incus/image.go +index 5ee2b74709..d5a1126855 100644 +--- a/cmd/incus/image.go ++++ b/cmd/incus/image.go +@@ -1134,11 +1134,6 @@ func (c *cmdImageList) parseColumns() ([]imageColumn, error) { + columnList := strings.Split(c.flagColumns, ",") + + columns := []imageColumn{} +- // Add project column if --all-projects flag specified and +- // no --c was passed +- if c.flagAllProjects && c.flagColumns == defaultImagesColumns { +- c.flagColumns = defaultImagesColumnsAllProjects +- } + + for _, columnEntry := range columnList { + if columnEntry == "" { +@@ -1321,6 +1316,11 @@ func (c *cmdImageList) Run(cmd *cobra.Command, args []string) error { + return err + } + ++ // Add project column if --all-projects flag specified and no -c was passed. ++ if c.flagAllProjects && c.flagColumns == defaultImagesColumns { ++ c.flagColumns = defaultImagesColumnsAllProjects ++ } ++ + // Parse remote + remote := "" + if len(args) > 0 { |