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
|
local pkg pkg_sep
|
||||||
for pkg in $(image_packages "$1" | sort); do
|
for pkg in $(image_packages "$1" | sort); do
|
||||||
# Ignore virtual packages since they aren't licensed
|
# Ignore certain categories of packages since they aren't licensed
|
||||||
if [[ "${pkg%%/*}" == "virtual" ]]; then
|
case "${pkg%%/*}" in
|
||||||
continue
|
'virtual'|'acct-group'|'acct-user')
|
||||||
fi
|
continue
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
local lic_str="$(get_metadata "$1" "${pkg}" LICENSE)"
|
local lic_str="$(get_metadata "$1" "${pkg}" LICENSE)"
|
||||||
if [[ -z "$lic_str" ]]; then
|
if [[ -z "$lic_str" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user