mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Merge pull request #154 from flatcar-linux/krnowak/ignore-more-categories
build_library: Ignore more categories in write_licenses
This commit is contained in:
commit
8215daa1c5
@ -368,10 +368,12 @@ write_licenses() {
|
||||
|
||||
local pkg pkg_sep
|
||||
for pkg in $(image_packages "$1" | sort); do
|
||||
# Ignore virtual packages since they aren't licensed
|
||||
if [[ "${pkg%%/*}" == "virtual" ]]; then
|
||||
continue
|
||||
fi
|
||||
# Ignore certain categories of packages since they aren't licensed
|
||||
case "${pkg%%/*}" in
|
||||
'virtual'|'acct-group'|'acct-user')
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
local lic_str="$(get_metadata "$1" "${pkg}" LICENSE)"
|
||||
if [[ -z "$lic_str" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user