quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH 1/2] inspect: Pass through the wrappers when appropri


From: Jean Delvare
Subject: [Quilt-dev] [PATCH 1/2] inspect: Pass through the wrappers when appropriate
Date: Sat, 25 Oct 2014 11:42:21 +0200

The wrappers may be called before the %prep section is entered, in
which case RPM_BUILD_DIR isn't set yet. In that case we want to
pass trough transparently.
---
 quilt/scripts/inspect.in |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/quilt/scripts/inspect.in
+++ b/quilt/scripts/inspect.in
@@ -350,6 +350,10 @@ cat <<-'EOF' > $tmpdir/bin/wrapper
                echo "$dir"
        }
 
+       PATH=${PATH#*:}
+       # If we are called too early, pass through without processing
+       [ -n "$RPM_BUILD_DIR" ] || exec ${0##*/} "$@"
+
        tmpdir=${RPM_BUILD_DIR%/*}
        rm -f $tmpdir/data
        case "${0##*/}" in
@@ -396,7 +400,6 @@ cat <<-'EOF' > $tmpdir/bin/wrapper
                esac
        fi
 
-       PATH=${PATH#*:}
        if [ -n "$inputfile" ]
        then
                ${0##*/} "$@"


-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]