Commit b71f3b67 authored by Anton Midyukov's avatar Anton Midyukov

live, image.in: use function for get lists from groups (for live)

A group may contain more than one list, or the group name may not match the list name.
parent 6d696ca8
......@@ -6,8 +6,8 @@ IMAGE_PACKAGES_REGEXP = $(LIVE_PACKAGES_REGEXP) $(THE_PACKAGES_REGEXP)
IMAGE_PACKAGES = $(COMMON_PACKAGES) $(LIVE_PACKAGES) $(THE_PACKAGES) \
$(call map,list, \
$(LIVE_LISTS) $(LIVE_GROUPS) \
$(THE_LISTS) $(THE_GROUPS) \
$(LIVE_LISTS) $(THE_LISTS) \
$(call live_groups2lists) \
$(COMMON_LISTS)) \
interactivesystem
......
......@@ -54,6 +54,16 @@ $(if $(filter groups2lists,$(0)),$(shell \
))
endef
define live_groups2lists
$(if $(filter live_groups2lists,$(0)),$(shell \
if [ -n "$(THE_GROUPS)$(LIVE_GROUPS)" ]; then \
sed -rn 's,^X-Alterator-PackageList=(.*)$$,\1,p' \
$(call map,group,$(THE_GROUPS) $(LIVE_GROUPS)) | \
sed 's/;/\n/g'; \
fi; \
))
endef
# kernel package list generation; see also #24669
NULL :=
SPACE := $(NULL) # the officially documented way of getting a space
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment