diff options
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r-- | meta/classes/go.bbclass | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index f303a15eaf..e40e55689d 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass | |||
@@ -71,17 +71,13 @@ python go_do_unpack() { | |||
71 | if len(src_uri) == 0: | 71 | if len(src_uri) == 0: |
72 | return | 72 | return |
73 | 73 | ||
74 | try: | 74 | fetcher = bb.fetch2.Fetch(src_uri, d) |
75 | fetcher = bb.fetch2.Fetch(src_uri, d) | 75 | for url in fetcher.urls: |
76 | for url in fetcher.urls: | 76 | if fetcher.ud[url].type == 'git': |
77 | if fetcher.ud[url].type == 'git': | 77 | if fetcher.ud[url].parm.get('destsuffix') is None: |
78 | if fetcher.ud[url].parm.get('destsuffix') is None: | 78 | s_dirname = os.path.basename(d.getVar('S')) |
79 | s_dirname = os.path.basename(d.getVar('S')) | 79 | fetcher.ud[url].parm['destsuffix'] = os.path.join(s_dirname, 'src', d.getVar('GO_IMPORT')) + '/' |
80 | fetcher.ud[url].parm['destsuffix'] = os.path.join(s_dirname, 'src', | 80 | fetcher.unpack(d.getVar('WORKDIR')) |
81 | d.getVar('GO_IMPORT')) + '/' | ||
82 | fetcher.unpack(d.getVar('WORKDIR')) | ||
83 | except bb.fetch2.BBFetchException as e: | ||
84 | raise bb.build.FuncFailed(e) | ||
85 | } | 81 | } |
86 | 82 | ||
87 | go_list_packages() { | 83 | go_list_packages() { |