aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2001-08-21 18:38:46 +0000
committerFrederic Lepied <flepied@mandriva.com>2001-08-21 18:38:46 +0000
commita647f7fa17868da8ab50a4726c35a9941648e6ce (patch)
tree4a5b84a9cf88f57dfac6c3e6b840069a218f02ec
parent89cf8c84cf08ebb04079891307f86b9214ab1dcb (diff)
downloadspec-helper-a647f7fa17868da8ab50a4726c35a9941648e6ce.tar
spec-helper-a647f7fa17868da8ab50a4726c35a9941648e6ce.tar.gz
spec-helper-a647f7fa17868da8ab50a4726c35a9941648e6ce.tar.bz2
spec-helper-a647f7fa17868da8ab50a4726c35a9941648e6ce.tar.xz
spec-helper-a647f7fa17868da8ab50a4726c35a9941648e6ce.zip
work cleanly with the packages without file.
-rwxr-xr-xspec-helper4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec-helper b/spec-helper
index 0a21d62..0bf58f2 100755
--- a/spec-helper
+++ b/spec-helper
@@ -13,6 +13,10 @@ if [ -z "$RPM_BUILD_ROOT" ]; then
exit 0
fi
+if [ ! -d $RPM_BUILD_ROOT ]; then
+ exit 0
+fi
+
SPEC_HELPER_ROOT=${SPEC_HELPER_ROOT=/usr/share/spec-helper}
PATH=$SPEC_HELPER_ROOT:$PATH
export PATH