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.
This commit is contained in:
parent
6d696ca802
commit
b71f3b67ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user