diff --git a/build.spec b/build.spec index 251d8ba..c46768c 100644 --- a/build.spec +++ b/build.spec @@ -156,6 +156,10 @@ if [ `whoami` != "root" ]; then echo "WARNING: Not building as root, tests did not run!" exit 0 fi +if [ ! -f "$RPM_BUILD_ROOT/usr/lib/build/configs/default.conf" ]; then + echo "WARNING: No default config, tests did not run!" + exit 0 +fi # get back the default.conf link cp -av $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf configs/ # do not get confused when building this already with build: