Skip to content

Commit 07ecd07

Browse files
committed
remove duplicated line and unnecessary import
1 parent 3165955 commit 07ecd07

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

classes/fossa.bbclass

+5-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ do_fossa_archive[rdeptask] += "do_patch"
1414
# This task runs after the `do_patch` task.
1515
#
1616
# 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
1818
# for every package that goes into the build.
1919
#
2020
# The temporary files containing this metadata are then combined into a
@@ -82,20 +82,17 @@ python do_fossa_pkg() {
8282
# this way it is able to capture the output of `do_fossa_pkg` for every
8383
# package that was processed.
8484
python do_fossa() {
85-
from oe.rootfs import image_list_installed_packages
86-
8785
if not is_fossa_enabled(d):
8886
bb.debug(1, "Since FOSSA_ENABLED is 0, skipping: creating fossa-deps.json")
89-
return
87+
return
9088

9189
import errno
9290
import os
9391
import json
9492
import glob
95-
93+
9694
metadata_dir = d.getVar('FOSSA_METADATA_RECIPES')
9795
pkg_metadata = all_pkg_metadata(d, metadata_dir)
98-
pkg_metadata = all_pkg_metadata(d, metadata_dir)
9996

10097
installed_pkgs = []
10198
for pkg in pkg_metadata:
@@ -122,10 +119,10 @@ python do_fossa() {
122119

123120
with open(fossa_deps_path, 'w+') as fd:
124121
json.dump(fossa_deps_dict, fd, indent=4, sort_keys=False)
125-
122+
126123
with open(fossa_deps_raw, 'w+') as fr:
127124
json.dump(pkg_metadata, fr, indent=4, sort_keys=False)
128-
125+
129126
bb.debug(1, "Wrote fossa-deps at: {fossa_deps_path}")
130127
}
131128

0 commit comments

Comments
 (0)