Skip to content

Commit

Permalink
20-files-present-and-referenced check return code from rpmbuild,
Browse files Browse the repository at this point in the history
not the one from egrep
  • Loading branch information
bugfinder committed Aug 30, 2011
1 parent 0e5eeb2 commit 6504405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 20-files-present-and-referenced
Expand Up @@ -120,10 +120,11 @@ for i in $DIR_TO_CHECK/*.spec ; do
sed -e "s@^$nodup:@X$nodup:@" -e "0,/^X$nodup:/{s@^X$nodup:@$nodup:@}" -e "s@^X$nodup:.*@@" $TMPDIR/tmp.spec > $TMPDIR/tmp.spec.2 && mv $TMPDIR/tmp.spec.2 $TMPDIR/tmp.spec
done

$RPMBUILD -bp $TMPDIR/tmp.spec 2>&1 >/dev/null | egrep -v '^warning:' >>$TMPDIR/sources || {
$RPMBUILD -bp $TMPDIR/tmp.spec 2>&1 >/dev/null || {
$RPMBUILD -bp $TMPDIR/tmp.spec
cleanup_and_exit 1
}
egrep -v '^warning' $TMPDIR/sources > $TMPDIR/sources.t && mv $TMPDIR/sources.t $TMPDIR/sources
done

test -f $TMPDIR/sources || cleanup_and_exit
Expand Down

0 comments on commit 6504405

Please sign in to comment.