From 3dc4404c71ef7b4cc77cbd6fdf52cb8486cd20acc274c1a966c44a2a8a7ced08 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 12 Jan 2012 15:06:02 +0000 Subject: [PATCH] Accepting request 100064 from home:a_jaeger:branches:build-compare-test Fix syntax error OBS-URL: https://build.opensuse.org/request/show/100064 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=109 --- build-compare.changes | 5 +++++ same-build-result.sh | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build-compare.changes b/build-compare.changes index bba341d..ba3307f 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 12 12:59:31 UTC 2012 - aj@suse.de + +- Fix syntax in same-build-result.sh. + ------------------------------------------------------------------- Mon Jan 9 13:15:33 UTC 2012 - aj@suse.de diff --git a/same-build-result.sh b/same-build-result.sh index e4fbb0b..ecaa7bb 100644 --- a/same-build-result.sh +++ b/same-build-result.sh @@ -86,8 +86,10 @@ if [ -n "${NEWRPMS[0]}" ]; then fi # Compare rpmlint.log files -RPMLINTDIR=$NEWDIRS/../OTHER -if [ -e $OLDDIR/rpmlint.log && -e $RPMLINTDIR/rpmlint.log ]; then +RPMLINTDIR=/home/abuild/rpmbuild/OTHER + +if test -e $OLDDIR/rpmlint.log -a -e $RPMLINTDIR/rpmlint.log; then + echo "comparing $OLDDIR/rpmlint.log and $RPMLINTDIR/rpmlint.log" 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