fetch/s3: Fix number of format string arguments
PATCH 1/1 fetch/s3: Fix number of format string arguments
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(-)
lib/bb/fetch2/s3.py +2 -2
@@ -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)
Signature · 1 line
2.51.2