[PATCH] fetch/s3: Fix number of format string arguments

Nate White <[email protected]> Tue, 9 Jun 2026 13:20:50 +0000
Newsgroups org.openembedded.lists.bitbake-devel
Message-ID <[email protected]>
basecmd was moved out of the format string args but was missed being
removed from the list of arguments resulting in a runtime error.

Remove the argument to fix this.

Signed-off-by: Nate White <[email protected]>
---
 lib/bb/fetch2/s3.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/fetch2/s3.py b/lib/bb/fetch2/s3.py
index 059351014..fdd450429 100644
--- a/lib/bb/fetch2/s3.py
+++ b/lib/bb/fetch2/s3.py
@@ -88,7 +88,7 @@ class S3(FetchMethod):
         Assumes localpath was called first
         """
 
-        cmd = ud.basecmd + ['cp', 's3://%s%s' % (ud.basecmd, ud.host, ud.path), ud.localpath]
+        cmd = ud.basecmd + ['cp', 's3://%s%s' % (ud.host, ud.path), ud.localpath]
         bb.fetch2.check_network_access(d, cmd, ud.url)
 
         progresshandler = S3ProgressHandler(d)
@@ -112,7 +112,7 @@ class S3(FetchMethod):
         Check the status of a URL
         """
 
-        cmd = ud.basecmd + ['ls', 's3://%s%s' % (ud.basecmd, ud.host, ud.path)]
+        cmd = ud.basecmd + ['ls', 's3://%s%s' % (ud.host, ud.path)]
         bb.fetch2.check_network_access(d, cmd, ud.url)
         output = runfetchcmd(cmd, d)
 
-- 
2.51.2