]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: showspec name that was tried but not found
authorElan Ruusamäe <glen@delfi.ee>
Mon, 12 Sep 2016 08:31:04 +0000 (11:31 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 12 Sep 2016 08:31:04 +0000 (11:31 +0300)
builder.sh

index 3e08d718084ccf8ca73e961a7f851ddc32eafc78..5ff6848c69b234a0ea651fcaf4231729e4c775f0 100755 (executable)
@@ -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
This page took 0.062311 seconds and 4 git commands to generate.