Accepting request 99622 from openSUSE:Tools

Compare rpmlint.log as well. (forwarded request 99499 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/99622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/build-compare?expand=0&rev=60
This commit is contained in:
Stephan Kulow 2012-01-11 14:36:02 +00:00 committed by Git OBS Bridge
commit 7fa5a88c10
3 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 9 13:15:33 UTC 2012 - aj@suse.de
- Compare rpmlint.log if it exists.
-------------------------------------------------------------------
Sat Sep 17 21:08:18 UTC 2011 - jengelh@medozas.de

View File

@ -1,7 +1,7 @@
#
# spec file for package build-compare
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -21,7 +21,7 @@ Name: build-compare
License: GPL-2.0+
Group: Development/Tools/Building
Summary: Build Result Compare Script
Version: 2011.04.19
Version: 2012.01.09
Release: 6
Source1: COPYING
Source2: same-build-result.sh

View File

@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2009, 2010 SUSE Linux Product GmbH, Germany.
# Copyright (c) 2009, 2010, 2012 SUSE Linux Product GmbH, Germany.
# Licensed under GPL v2, see COPYING file for details.
#
# Written by Adrian Schroeter <adrian@suse.de>
@ -85,6 +85,16 @@ if [ -n "${NEWRPMS[0]}" ]; then
exit 1
fi
# Compare rpmlint.log files
RPMLINTDIR=$NEWDIRS/../OTHER
if [ -e $OLDDIR/rpmlint.log && -e $RPMLINTDIR/rpmlint.log ]; then
if ! cmp -s $OLDDIR/rpmlint.log $RPMLINTDIR/rpmlint.log; then
echo "rpmlint.log files differ:"
diff -u $OLDDIR/rpmlint.log $RPMLINTDIR/rpmlint.log|head -n 20
exit 1
fi
fi
if test $SUCCESS -eq 0; then
exit 1
fi