@@ -14,7 +14,7 @@ do_fossa_archive[rdeptask] += "do_patch"
14
14
# This task runs after the `do_patch` task.
15
15
#
16
16
# The `do_patch` task is executed for each package in the build; in this way
17
- # `do_fossa_archive` is able to save the package information and source code
17
+ # `do_fossa_archive` is able to save the package information and source code
18
18
# for every package that goes into the build.
19
19
#
20
20
# The temporary files containing this metadata are then combined into a
@@ -82,20 +82,17 @@ python do_fossa_pkg() {
82
82
# this way it is able to capture the output of `do_fossa_pkg` for every
83
83
# package that was processed.
84
84
python do_fossa () {
85
- from oe . rootfs import image_list_installed_packages
86
-
87
85
if not is_fossa_enabled (d ):
88
86
bb . debug (1 , "Since FOSSA_ENABLED is 0, skipping: creating fossa-deps.json" )
89
- return
87
+ return
90
88
91
89
import errno
92
90
import os
93
91
import json
94
92
import glob
95
-
93
+
96
94
metadata_dir = d . getVar ('FOSSA_METADATA_RECIPES' )
97
95
pkg_metadata = all_pkg_metadata (d , metadata_dir )
98
- pkg_metadata = all_pkg_metadata (d , metadata_dir )
99
96
100
97
installed_pkgs = []
101
98
for pkg in pkg_metadata :
@@ -122,10 +119,10 @@ python do_fossa() {
122
119
123
120
with open (fossa_deps_path , 'w+' ) as fd :
124
121
json . dump (fossa_deps_dict , fd , indent = 4 , sort_keys = False )
125
-
122
+
126
123
with open (fossa_deps_raw , 'w+' ) as fr :
127
124
json . dump (pkg_metadata , fr , indent = 4 , sort_keys = False )
128
-
125
+
129
126
bb . debug (1 , "Wrote fossa-deps at: {fossa_deps_path}" )
130
127
}
131
128
0 commit comments