include: use anchored patterns for dependency checking
Anchor search pattern when testing dependencies, otherwise the check may succeed in cases where it shouldn't, e.g. when matching "udp_tunnel.ko" against "ip6_udp_tunnel.ko". Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44207 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
e09cec721e
commit
a22f276947
|
@ -66,7 +66,7 @@ ifneq ($(PKG_NAME),toolchain)
|
||||||
XARGS="$(XARGS)"; \
|
XARGS="$(XARGS)"; \
|
||||||
$(SCRIPT_DIR)/gen-dependencies.sh "$$(IDIR_$(1))"; \
|
$(SCRIPT_DIR)/gen-dependencies.sh "$$(IDIR_$(1))"; \
|
||||||
) | while read FILE; do \
|
) | while read FILE; do \
|
||||||
grep -q "$$$$FILE" $(PKG_INFO_DIR)/$(1).provides || \
|
grep -qE "^$$$$FILE$$$$" $(PKG_INFO_DIR)/$(1).provides || \
|
||||||
echo "$$$$FILE" >> $(PKG_INFO_DIR)/$(1).missing; \
|
echo "$$$$FILE" >> $(PKG_INFO_DIR)/$(1).missing; \
|
||||||
done; \
|
done; \
|
||||||
if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \
|
if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \
|
||||||
|
|
Loading…
Reference in New Issue