[packages/rpm-build-tools] builder: showspec name that was tried but not found

glen glen at pld-linux.org
Mon Sep 12 10:31:14 CEST 2016


commit e55ef62b2f7183eabe4b176688d136e8bb721286
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Sep 12 11:31:04 2016 +0300

    builder: showspec name that was tried but not found

 builder.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/e55ef62b2f7183eabe4b176688d136e8bb721286



More information about the pld-cvs-commit mailing list