From bbd9d58f7b544749125860f78838e04e91cfaadf Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 15:54:58 -0400 Subject: opkbuild, ob-*: Exit with error on ob_set_text_domain() failure --- (limited to 'src/ob-applypatches.sh') diff --git a/src/ob-applypatches.sh b/src/ob-applypatches.sh index 165c426..0ab3308 100644 --- a/src/ob-applypatches.sh +++ b/src/ob-applypatches.sh @@ -55,7 +55,10 @@ apply_patches() main() { - ob_set_text_domain 'opkbuild' + if ! ob_set_text_domain 'opkbuild'; then + printf '%s: Error: Failed to load locale messages\n' >&2 + return 1 + fi ob_init_package '..' || return 1 ob_parse_package_metadata -c '.opkbuild.cache' || return 1 -- cgit v0.9.1