pkg.in: more --parents

This cp(1) option has been employed already but just for the lists
(and still incomplete as it didn't cover the names coming through
groups mechanism); thanks sem@ for trying out groups/simply/*,
failing to build an image and reporting the problem.

Reported-by: Mikhail Efremov <sem@altlinux.org>
This commit is contained in:
Michael Shigorin 2016-03-25 16:59:28 +03:00
parent d053375ee2
commit 1ccdc90a3d
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ TARGET := $(BUILDDIR)/$(SUFFIX)
all: $(GLOBAL_DEBUG)
@if [ -n "$(THE_GROUPS)$(MAIN_GROUPS)" ]; then \
mkdir -p $(TARGET) && \
cp -at $(TARGET) -- \
cp --parents -at $(TARGET) -- \
$(addsuffix .directory,$(THE_GROUPS) $(MAIN_GROUPS)); \
mp-commit "$(TARGET)" "requested $(SUFFIX) copied over"; \
fi

View File

@ -30,7 +30,7 @@ copy-lists:
copy-groups:
@if [ -n "$(THE_GROUPS)$(MAIN_GROUPS)" ]; then \
cp -at $(TARGET) -- $(THE_GROUPS) $(MAIN_GROUPS); \
cp --parents -at $(TARGET) -- $(THE_GROUPS) $(MAIN_GROUPS); \
fi
grep-archdep: a = $(ARCH)