Commit 6711fd92 authored by Michael Shigorin's avatar Michael Shigorin

lib/profile.mk: slightly improved arch test

ildar@ noted that the test involving whitespace is too quirky for some quirky enough cases like rpm-dir file:/var/cache/apt/archives . x86_64 -- let's introduce word boundaries there.
parent c30490e2
......@@ -56,7 +56,7 @@ profile/init: distclean
| tee $(BUILDDIR)/sources.list; \
echo; \
} $(LOG); \
if ! grep -q "[ ]$(ARCH)[ ]" $(BUILDDIR)/sources.list; then \
if ! grep -q "\<$(ARCH)\>" $(BUILDDIR)/sources.list; then \
echo -n "requested arch '$$ARCH' unavailable" >&2; \
if [ -z "$(APTCONF)" ]; then \
echo " (no APTCONF)"; \
......
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