reinitialize $RPMS as check scripts might delete packages
authorLudwig Nussel <ludwig.nussel@suse.de>
Tue, 10 Jan 2012 13:00:30 +0000 (14:00 +0100)
committerLudwig Nussel <ludwig.nussel@suse.de>
Tue, 10 Jan 2012 13:00:30 +0000 (14:00 +0100)
build

diff --git a/build b/build
index e09f829..61f7cd0 100755 (executable)
--- a/build
+++ b/build
@@ -2060,6 +2060,9 @@ if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/lib/build/checks" ; then
     done
 fi
 
+RPMS=`find $BUILD_ROOT/$TOPDIR/RPMS -type f -name "*.rpm" 2>/dev/null || true`
+DEBS=`find $BUILD_ROOT/$TOPDIR/DEBS -type f -name "*.deb" 2>/dev/null || true`
+
 if test -n "$RPMS" -a "$DO_CHECKS" != "false" -a -x "$BUILD_ROOT/opt/testing/bin/rpmlint" ; then
     LINT_RPM_FILE_LIST=($(find $BUILD_ROOT/$TOPDIR/RPMS \
        \( -name "*-debuginfo-*" -o -name "*-debugsource-*" \