public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/incus/, app-containers/incus/files/
Date: Sun, 02 Feb 2025 08:19:36 +0000 (UTC)	[thread overview]
Message-ID: <1738484312.0b4f73b2089b8582a12cc384173049454cfbe2aa.juippis@gentoo> (raw)

commit:     0b4f73b2089b8582a12cc384173049454cfbe2aa
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  2 08:18:32 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Feb  2 08:18:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b4f73b2

app-containers/incus: add upstream patch to 6.9 for 'incus file pull'

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 ...cus-6.9-ensure-leading-slash-in-all-paths.patch | 32 ++++++++++++++++++++++
 .../{incus-6.9.ebuild => incus-6.9-r1.ebuild}      |  2 ++
 2 files changed, 34 insertions(+)

diff --git a/app-containers/incus/files/incus-6.9-ensure-leading-slash-in-all-paths.patch b/app-containers/incus/files/incus-6.9-ensure-leading-slash-in-all-paths.patch
new file mode 100644
index 000000000000..a4647528c593
--- /dev/null
+++ b/app-containers/incus/files/incus-6.9-ensure-leading-slash-in-all-paths.patch
@@ -0,0 +1,32 @@
+From b726905c66050ac4229d53ce079a0bd05dbe900d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber@stgraber.org>
+Date: Thu, 30 Jan 2025 15:21:36 +0100
+Subject: [PATCH] incus/file/pull: Ensure we have a leading / in all paths
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Closes #1614
+
+Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
+---
+ cmd/incus/file.go | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/cmd/incus/file.go b/cmd/incus/file.go
+index a17486ad327..99467a0bfc5 100644
+--- a/cmd/incus/file.go
++++ b/cmd/incus/file.go
+@@ -575,6 +575,11 @@ func (c *cmdFilePull) Run(cmd *cobra.Command, args []string) error {
+ 			return fmt.Errorf(i18n.G("Invalid source %s"), resource.name)
+ 		}
+ 
++		// Make sure we have a leading / for the path.
++		if !strings.HasPrefix(pathSpec[1], "/") {
++			pathSpec[1] = "/" + pathSpec[1]
++		}
++
+ 		sftpConn, ok := sftpClients[pathSpec[0]]
+ 		if !ok {
+ 			sftpConn, err = resource.server.GetInstanceFileSFTP(pathSpec[0])
+

diff --git a/app-containers/incus/incus-6.9.ebuild b/app-containers/incus/incus-6.9-r1.ebuild
similarity index 98%
rename from app-containers/incus/incus-6.9.ebuild
rename to app-containers/incus/incus-6.9-r1.ebuild
index fa843c98a152..2554cf605f8b 100644
--- a/app-containers/incus/incus-6.9.ebuild
+++ b/app-containers/incus/incus-6.9-r1.ebuild
@@ -91,6 +91,8 @@ RESTRICT="test"
 
 GOPATH="${S}/_dist"
 
+PATCHES=( "${FILESDIR}"/incus-6.9-ensure-leading-slash-in-all-paths.patch )
+
 src_unpack() {
 	verify-sig_src_unpack
 	go-module_src_unpack


             reply	other threads:[~2025-02-02  8:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-02  8:19 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-05 16:58 [gentoo-commits] repo/gentoo:master commit in: app-containers/incus/, app-containers/incus/files/ Joonas Niilola
2024-07-12 19:28 Joonas Niilola
2024-04-29  8:18 Joonas Niilola
2024-01-31  7:37 Joonas Niilola
2023-12-27 17:21 Joonas Niilola
2023-12-13  8:09 Joonas Niilola
2023-10-13 17:22 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1738484312.0b4f73b2089b8582a12cc384173049454cfbe2aa.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox