mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
build_library: skip licenses for virtual packages
This commit is contained in:
parent
664eadff1b
commit
287662c7e0
@ -281,6 +281,11 @@ 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
|
||||||
|
if [[ "${pkg%%/*}" == "virtual" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
local path="$1/var/db/pkg/${pkg%%:*}/LICENSE"
|
local path="$1/var/db/pkg/${pkg%%:*}/LICENSE"
|
||||||
local lic_str
|
local lic_str
|
||||||
if [[ -f "$path" ]]; then
|
if [[ -f "$path" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user