diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2025-02-07 13:46:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-11 21:18:39 +0000 |
commit | f62042523a0f42a39c91c0d107b68e624e88a455 (patch) | |
tree | 88550c5a996f291fda76247c8f5b45bc26ac8564 /bitbake/lib | |
parent | 170dd77e4af60a4df8ffbf88882b4b158954a754 (diff) | |
download | poky-f62042523a0f42a39c91c0d107b68e624e88a455.tar.gz |
bitbake: fetch2: ssh: use common localpath handling
(Bitbake rev: 22ac6e84c70034a74f1729c7e0f31ca928fa1dea)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/ssh.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py index 0cbb2a6f25..2a0f2cb44b 100644 --- a/bitbake/lib/bb/fetch2/ssh.py +++ b/bitbake/lib/bb/fetch2/ssh.py | |||
@@ -73,8 +73,7 @@ class SSH(FetchMethod): | |||
73 | path = m.group('path') | 73 | path = m.group('path') |
74 | path = urllib.parse.unquote(path) | 74 | path = urllib.parse.unquote(path) |
75 | host = m.group('host') | 75 | host = m.group('host') |
76 | urldata.localpath = os.path.join(d.getVar('DL_DIR'), | 76 | urldata.localfile = os.path.basename(os.path.normpath(path)) |
77 | os.path.basename(os.path.normpath(path))) | ||
78 | 77 | ||
79 | def download(self, urldata, d): | 78 | def download(self, urldata, d): |
80 | dldir = d.getVar('DL_DIR') | 79 | dldir = d.getVar('DL_DIR') |