diff options
author | Pascal Bach <pascal.bach@siemens.com> | 2022-09-28 22:25:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-29 21:24:29 +0100 |
commit | f76140955183259878df7425774aa18d0032b397 (patch) | |
tree | 6e8cf8bc9cfc1a104158b5d3963afe936a9f7a6e /bitbake/lib/bb/fetch2/ssh.py | |
parent | b46ab07288c415238b1d669b271671c17ecfca5c (diff) | |
download | poky-f76140955183259878df7425774aa18d0032b397.tar.gz |
bitbake: fetch2/ssh.py: fix checkstatus
The output of runfetchcmd is always empty in this case, as
the test doesn't produce any output.
SSH either returns 0 or 1, which is handled via exceptions.
This means the current check is not only unnecessary but prevents the
function from working.
We can just assume that if we reach the end of the function that the
file exists and return True.
(Bitbake rev: d599af48635fab587e5b913591b95daf87b40080)
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/ssh.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/ssh.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py index 8d082b38c1..0cbb2a6f25 100644 --- a/bitbake/lib/bb/fetch2/ssh.py +++ b/bitbake/lib/bb/fetch2/ssh.py | |||
@@ -150,8 +150,6 @@ class SSH(FetchMethod): | |||
150 | ) | 150 | ) |
151 | 151 | ||
152 | check_network_access(d, cmd, urldata.url) | 152 | check_network_access(d, cmd, urldata.url) |
153 | runfetchcmd(cmd, d) | ||
153 | 154 | ||
154 | if runfetchcmd(cmd, d): | 155 | return True |
155 | return True | ||
156 | |||
157 | return False | ||