-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the dependencies to baked in files
Remove the deps of LICENSE_CREATE_PACKAGE or COPY_LIC_MANIFEST when looking up licenses in an image recipe. Replaced it by internal methods Closes #56
- Loading branch information
1 parent
b9c4787
commit 8acd368
Showing
4 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## This class contains helper methods | ||
## when dealing with licenses and images | ||
|
||
ROOTFS_POSTPROCESS_COMMAND =+ " do_sca_image_pkg_list; " | ||
|
||
SCA_IMAGE_PKG_LIST = "${T}/pkgs.json" | ||
|
||
python do_sca_image_pkg_list() { | ||
import json | ||
from oe.rootfs import image_list_installed_packages | ||
with open(d.getVar("SCA_IMAGE_PKG_LIST"), "w") as o: | ||
json.dump(image_list_installed_packages(d), o) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters