From a944ea1b26260df7f1830305624d3f59ba7c4e1f Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 6 Nov 2011 16:30:41 +0100 Subject: [PATCH 1/1] +option pie Always fallback at least to diff it somehow. --- bin/diffgdbdir | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/diffgdbdir b/bin/diffgdbdir index 2f2ab2d..ad10958 100755 --- a/bin/diffgdbdir +++ b/bin/diffgdbdir @@ -1,6 +1,7 @@ #! /bin/sh x="*.log" +x2="foobar" o="" while true;do if [ "$1" = "-r" ];then @@ -19,6 +20,11 @@ while true;do shift continue fi + if [ "$1" = "pie" ];then + x2="*pie*" + shift + continue + fi break done @@ -36,7 +42,7 @@ function diffitraw echo "MISSING: $dir1 $dir2" return fi - diffgdb $o -x rpm-qa -x "$x" $dir1 $dir2 + diffgdb $o -x rpm-qa -x "$x" -x "$x2" $dir1 $dir2 diffed=true } function diffit @@ -91,5 +97,6 @@ if [ "$1" != "${1#tests/}" -a -d $1 ];then diffed=true fi if ! $diffed;then - echo "NOT FOUND: $1 $2" + diffitraw $1 $2 + #echo "NOT FOUND: $1 $2" fi -- 1.8.3.1