Accepting request 106433 from home:coolo:appstream
- I changed my mind, appdata.xml is too hard to get right. So we need to support variable binary names for the appdata OBS-URL: https://build.opensuse.org/request/show/106433 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=124
This commit is contained in:
parent
d521ef89cd
commit
2d10a86db3
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 22 11:07:53 UTC 2012 - coolo@suse.com
|
||||
|
||||
- I changed my mind, appdata.xml is too hard to get right. So
|
||||
we need to support variable binary names for the appdata
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 18 18:27:40 UTC 2012 - aj@suse.de
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: build-compare
|
||||
Summary: Build Result Compare Script
|
||||
License: GPL-2.0+
|
||||
|
@ -112,19 +112,22 @@ elif test -e $OTHERDIR/rpmlint.log; then
|
||||
SUCCESS=0
|
||||
fi
|
||||
|
||||
# compare appstream data
|
||||
if test -e $OLDDIR/appdata.xml -a -e $OTHERDIR/appdata.xml; then
|
||||
file1=$OLDDIR/appdata.xml
|
||||
file2=$OTHERDIR/appdata.xml
|
||||
if ! cmp -s $file1 $file2; then
|
||||
echo "appdata.xml files differ:"
|
||||
diff -u0 $file1 $file2 |head -n 20
|
||||
appdatas=`cd $OTHERDIR && find . -name *-appdata.xml`
|
||||
for xml in $appdatas; do
|
||||
# compare appstream data
|
||||
if test -e $OLDDIR/$xml -a -e $OTHERDIR/$xml; then
|
||||
file1=$OLDDIR/$xml
|
||||
file2=$OTHERDIR/$xml
|
||||
if ! cmp -s $file1 $file2; then
|
||||
echo "$xml files differ:"
|
||||
diff -u0 $file1 $file2 |head -n 20
|
||||
SUCCESS=0
|
||||
fi
|
||||
elif test -e $OTHERDIR/$xml; then
|
||||
echo "$xml is new"
|
||||
SUCCESS=0
|
||||
fi
|
||||
elif test -e $OTHERDIR/appdata.xml; then
|
||||
echo "appdata.xml is new"
|
||||
SUCCESS=0
|
||||
fi
|
||||
done
|
||||
|
||||
if test $SUCCESS -eq 0; then
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user