]> git.ipfire.org Git - thirdparty/openwrt.git/commit
build: fix recipe line break in wrap_mirror fallback path
authorKarsten Sperling <ksperling@apple.com>
Thu, 4 Jun 2026 02:30:26 +0000 (14:30 +1200)
committerRobert Marko <robimarko@gmail.com>
Thu, 4 Jun 2026 19:12:27 +0000 (21:12 +0200)
commit28fa9c7540ad4677c38a57de8d3961b1ab67d162
treeb6af44869f30be2ee2883630645b30bf1209b788
parentf93228427aa98324b97bac1defd9a8a39e47c29a
build: fix recipe line break in wrap_mirror fallback path

Commit 042996b46b ("build: stricter hash validation on download")
refactored the $(if) in wrap_mirror from a single line to multiple lines.
The else branch (used when MIRROR is empty) was moved to a new line without
a trailing backslash on the preceding line. This causes download methods
that use wrap_mirror (e.g. git) to fail when PKG_SOURCE_MIRROR is 0:

    SHELL= flock ...flock -c '  ...
    bash: -c: line 1: unexpected EOF while looking for matching `''

The fix is to add the missing \ to the else branch.

Signed-off-by: Karsten Sperling <ksperling@apple.com>
include/download.mk