From d0ffe023c4a642c8d1c188ec499870e7a7113d7d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 4 Feb 2011 10:26:21 +0000 Subject: bitbake/fetch2: Rewrite and improve exception handling, reusing core functions for common operations where possible (From Poky rev: d08397ba4d1331993300eacbb2f78fcfef19c1cf) Signed-off-by: Richard Purdie --- lib/bb/fetch2/ssh.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/bb/fetch2/ssh.py') 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) + -- cgit 1.2.3-korg