summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/ssh.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-04 10:26:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 23:37:00 +0000
commitd0ffe023c4a642c8d1c188ec499870e7a7113d7d (patch)
tree5d22edd49e9e733643c73959bbbebee55d3df089 /lib/bb/fetch2/ssh.py
parente448fa0432d12cc54f0b540fe2cacff37135c9ed (diff)
downloadbitbake-d0ffe023c4a642c8d1c188ec499870e7a7113d7d.tar.gz
bitbake/fetch2: Rewrite and improve exception handling, reusing core functions for common operations where possible
(From Poky rev: d08397ba4d1331993300eacbb2f78fcfef19c1cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/ssh.py')
-rw-r--r--lib/bb/fetch2/ssh.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bb/fetch2/ssh.py b/lib/bb/fetch2/ssh.py
index 246439ef1..29cc27219 100644
--- a/lib/bb/fetch2/ssh.py
+++ b/lib/bb/fetch2/ssh.py
@@ -114,7 +114,5 @@ class SSH(Fetch):
bb.fetch2.check_network_access(d, cmd)
- (exitstatus, output) = commands.getstatusoutput(cmd)
- if exitstatus != 0:
- print(output)
- raise FetchError('Unable to fetch %s' % url)
+ runfetchcmd(cmd, d)
+