From: Elan Ruusamäe Date: Mon, 12 Sep 2016 08:31:04 +0000 (+0300) Subject: builder: showspec name that was tried but not found X-Git-Tag: auto/th/rpm-build-tools-4.9-1~2 X-Git-Url: https://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=commitdiff_plain;h=e55ef62b2f7183eabe4b176688d136e8bb721286 builder: showspec name that was tried but not found --- diff --git a/builder.sh b/builder.sh index 3e08d71..5ff6848 100755 --- a/builder.sh +++ b/builder.sh @@ -806,7 +806,11 @@ Exit_error() { exit 2 ;; "err_no_spec_in_repo" ) remove_build_requires - echo >&2 "Error: spec file not stored in PLD repo." + echo >&2 "Error: spec file not stored in repository." + if [ -n "$2" ]; then + echo >&2 "Tried: $2" + fi + exit 3 ;; "err_no_source_in_repo" ) remove_build_requires @@ -1035,7 +1039,7 @@ get_spec() { fi if [ ! -f "$PACKAGE_DIR/$SPECFILE" ]; then - Exit_error err_no_spec_in_repo + Exit_error err_no_spec_in_repo "$PACKAGE_DIR/$SPECFILE" fi if [ "$CHMOD" = "yes" -a -n "$SPECFILE" ]; then