- Whitespace in javadoc case
- Whitespace changes in html case - Move case kde/gtk html up in the case list - Move case rdoc html up in the case list - Add option -a to same-build-result.sh and loop through all rpms - Rework sorting of rpm files in same-build-result.sh - Better diagnostic if number of subpackages changes - Create tmpfiles earlier in same-build-result.sh - Handle all javadoc html files OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=201
This commit is contained in:
parent
6320d4fe21
commit
9abd4b5365
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 7 11:56:28 UTC 2016 - olaf@aepfle.de
|
||||||
|
|
||||||
|
- Whitespace in javadoc case
|
||||||
|
- Whitespace changes in html case
|
||||||
|
- Move case kde/gtk html up in the case list
|
||||||
|
- Move case rdoc html up in the case list
|
||||||
|
- Add option -a to same-build-result.sh and loop through all rpms
|
||||||
|
- Rework sorting of rpm files in same-build-result.sh
|
||||||
|
- Better diagnostic if number of subpackages changes
|
||||||
|
- Create tmpfiles earlier in same-build-result.sh
|
||||||
|
- Handle all javadoc html files
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 4 18:50:32 UTC 2016 - olaf@aepfle.de
|
Fri Mar 4 18:50:32 UTC 2016 - olaf@aepfle.de
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ Summary: Build Result Compare Script
|
|||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Url: https://github.com/openSUSE/build-compare
|
Url: https://github.com/openSUSE/build-compare
|
||||||
Version: 20160304T195219.e59af35
|
Version: 20160307T125659.618d059
|
||||||
Release: 0
|
Release: 0
|
||||||
Source1: COPYING
|
Source1: COPYING
|
||||||
Source2: same-build-result.sh
|
Source2: same-build-result.sh
|
||||||
|
155
pkg-diff.sh
155
pkg-diff.sh
@ -499,73 +499,85 @@ check_single_file()
|
|||||||
sed -i -e "s,POT-Creation-Date: ....-..-.. ..:..+....,POT-Creation-Date: 1970-01-01 00:00+0000," $f
|
sed -i -e "s,POT-Creation-Date: ....-..-.. ..:..+....,POT-Creation-Date: 1970-01-01 00:00+0000," $f
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
/usr/share/doc/packages/*/*.html|\
|
*/rdoc/files/*.html)
|
||||||
/usr/share/doc/packages/*/*/*.html|\
|
# ruby documentation
|
||||||
/usr/share/doc/*/html/*.html|\
|
# <td>Mon Sep 20 19:02:43 +0000 2010</td>
|
||||||
/usr/share/doc/kde/HTML/*/*/*.html)
|
for f in old/$file new/$file; do
|
||||||
for f in old/$file new/$file; do
|
sed -i -e 's%<td>[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9]\+ [0-9]\+:[0-9]\+:[0-9]\+ +0000 201[0-9]</td>%<td>Mon Sep 20 19:02:43 +0000 2010</td>%g' $f
|
||||||
|
done
|
||||||
|
strip_numbered_anchors
|
||||||
|
;;
|
||||||
|
/usr/share/doc/kde/HTML/*/*/index.cache|/usr/share/doc/kde/HTML/*/*/*/index.cache|\
|
||||||
|
/usr/share/gtk-doc/html/*/*.html|/usr/share/gtk-doc/html/*/*.devhelp2)
|
||||||
|
# various kde and gtk packages
|
||||||
|
strip_numbered_anchors
|
||||||
|
;;
|
||||||
|
/usr/share/doc/packages/*/*.html|\
|
||||||
|
/usr/share/doc/packages/*/*/*.html|\
|
||||||
|
/usr/share/doc/*/html/*.html|\
|
||||||
|
/usr/share/doc/kde/HTML/*/*/*.html)
|
||||||
|
for f in old/$file new/$file; do
|
||||||
sed -i -e '
|
sed -i -e '
|
||||||
s|META NAME="Last-modified" CONTENT="[^"]\+"|META NAME="Last-modified" CONTENT="Thu Mar 3 10:32:44 2016"|
|
s|META NAME="Last-modified" CONTENT="[^"]\+"|META NAME="Last-modified" CONTENT="Thu Mar 3 10:32:44 2016"|
|
||||||
s|<!-- Created on [^,]\+, [0-9]\+ [0-9]\+ by texi2html [0-9\.]\+ -->|<!-- Created on July, 14 2015 by texi2html 1.78 -->|
|
s|<!-- Created on [^,]\+, [0-9]\+ [0-9]\+ by texi2html [0-9\.]\+ -->|<!-- Created on July, 14 2015 by texi2html 1.78 -->|
|
||||||
s|<!-- Created on [^,]\+, [0-9]\+ by texi2html [0-9\.]\+$|<!-- Created on October 1, 2015 by texi2html 5.0|
|
s|<!-- Created on [^,]\+, [0-9]\+ by texi2html [0-9\.]\+$|<!-- Created on October 1, 2015 by texi2html 5.0|
|
||||||
s|^<!-- Created on .*, 20.. by texi2html .\...|<!-- Created on August 7, 2009 by texi2html 1.82|
|
s|^<!-- Created on .*, 20.. by texi2html .\...|<!-- Created on August 7, 2009 by texi2html 1.82|
|
||||||
s|This document was generated by <em>Autobuild</em> on <em>[^,]\+, [0-9]\+ [0-9]\+</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html [0-9\.]\+</em></a>.|This document was generated by <em>Autobuild</em> on <em>July, 15 2015</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.78</em></a>.|
|
s|This document was generated by <em>Autobuild</em> on <em>[^,]\+, [0-9]\+ [0-9]\+</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html [0-9\.]\+</em></a>.|This document was generated by <em>Autobuild</em> on <em>July, 15 2015</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.78</em></a>.|
|
||||||
s|^ *This document was generated by <em>Autobuild</em> on <em>.*, 20..</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html .\...</em></a>.$| This document was generated by <em>Autobuild</em> on <em>August 7, 2009</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.|
|
s|^ *This document was generated by <em>Autobuild</em> on <em>.*, 20..</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html .\...</em></a>.$| This document was generated by <em>Autobuild</em> on <em>August 7, 2009</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.|
|
||||||
s|^ *This document was generated on <i>[a-zA-Z]\+ [0-9]\+, [0-9]\+</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html [0-9\.]\+</i></a>.| This document was generated on <i>October 1, 2015</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 5.0</i></a>.|
|
s|^ *This document was generated on <i>[a-zA-Z]\+ [0-9]\+, [0-9]\+</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html [0-9\.]\+</i></a>.| This document was generated on <i>October 1, 2015</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 5.0</i></a>.|
|
||||||
s|Generated on ... ... [0-9]* [0-9]*:[0-9][0-9]:[0-9][0-9] 20[0-9][0-9] for |Generated on Mon May 10 20:45:00 2010 for |
|
s|Generated on ... ... [0-9]* [0-9]*:[0-9][0-9]:[0-9][0-9] 20[0-9][0-9] for |Generated on Mon May 10 20:45:00 2010 for |
|
||||||
s|Generated on ... ... [0-9]* 20[0-9][0-9] [0-9]*:[0-9][0-9]:[0-9][0-9] for |Generated on Mon May 10 20:45:00 2010 for |
|
s|Generated on ... ... [0-9]* 20[0-9][0-9] [0-9]*:[0-9][0-9]:[0-9][0-9] for |Generated on Mon May 10 20:45:00 2010 for |
|
||||||
' $f
|
|
||||||
done
|
|
||||||
strip_numbered_anchors
|
|
||||||
;;
|
|
||||||
/usr/share/javadoc/*.html |\
|
|
||||||
/usr/share/javadoc/*/*.html|/usr/share/javadoc/*/*/*.html)
|
|
||||||
strip_numbered_anchors
|
|
||||||
# There are more timestamps in html, so far we handle only some primitive versions.
|
|
||||||
for f in old/$file new/$file; do
|
|
||||||
# Javadoc:
|
|
||||||
# <head>
|
|
||||||
# <!-- Generated by javadoc (version 1.7.0_75) on Tue Feb 03 02:20:12 GMT 2015 -->
|
|
||||||
# <!-- Generated by javadoc on Tue Feb 03 00:02:48 GMT 2015 -->
|
|
||||||
# <!-- Generated by javadoc (1.8.0_72) on Thu Mar 03 12:50:28 GMT 2016 -->
|
|
||||||
# <meta name="date" content="2015-02-03">
|
|
||||||
# </head>
|
|
||||||
sed -i -e '
|
|
||||||
/^<head>/{
|
|
||||||
: next
|
|
||||||
n
|
|
||||||
/^<\/head>/{
|
|
||||||
b end_head
|
|
||||||
}
|
|
||||||
s/^<!-- Generated by javadoc ([0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) .... -->/<!-- Generated by javadoX (1.8.0_72) on Thu Mar 03 12:50:28 GMT 2016 -->/
|
|
||||||
t next
|
|
||||||
s/^\(<!-- Generated by javadoc\) \((\(build\|version\) [0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \5/
|
|
||||||
t next
|
|
||||||
s/^\(<!-- Generated by javadoc\) \(on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \3/
|
|
||||||
t next
|
|
||||||
s/^<meta name="date" content="[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}">/<meta name="date" content="some-date-removed-by-build-compare">/
|
|
||||||
b next
|
|
||||||
}
|
|
||||||
: end_head
|
|
||||||
' $f
|
' $f
|
||||||
# Gjdoc HtmlDoclet:
|
done
|
||||||
sed -i -e 's%Generated by Gjdoc HtmlDoclet [0-9,.]*, part of <a href="http://www.gnu.org/software/classpath/cp-tools/" title="" target="_top">GNU Classpath Tools</a>, on .*, 20.. [0-9]*:..:.. \(a\|p\)\.m\. GMT.%Generated by Gjdoc.%' $f
|
strip_numbered_anchors
|
||||||
sed -i -e 's%<!DOCTYPE html PUBLIC "-//gnu.org///DTD XHTML 1.1 plus Target 1.0//EN"\(.*\)GNU Classpath Tools</a>, on [A-Z][a-z]* [0-9]*, 20?? [0-9]*:??:?? \(a|p\)\.m\. GMT.</p>%<!DOCTYPE html PUBLIC "-//gnu.org///DTD XHTML 1.1 plus Target 1.0//EN"\1GNU Classpath Tools</a>, on January 1, 2009 0:00:00 a.m. GMT.</p>%' $f
|
;;
|
||||||
sed -i -e 's%<!DOCTYPE html PUBLIC "-//gnu.org///DTD\(.*GNU Classpath Tools</a>\), on [a-zA-Z]* [0-9][0-9], 20.. [0-9]*:..:.. \(a\|p\)\.m\. GMT.</p>%<!DOCTYPE html PUBLIC "-//gnu.org///DTD\1,on May 1, 2010 1:11:42 p.m. GMT.</p>%' $f
|
/usr/*/javadoc/*.html)
|
||||||
# deprecated-list is randomly ordered, sort it for comparison
|
strip_numbered_anchors
|
||||||
case $f in
|
# There are more timestamps in html, so far we handle only some primitive versions.
|
||||||
*/deprecated-list.html)
|
for f in old/$file new/$file; do
|
||||||
sort -o $f $f
|
# Javadoc:
|
||||||
;;
|
# <head>
|
||||||
esac
|
# <!-- Generated by javadoc (version 1.7.0_75) on Tue Feb 03 02:20:12 GMT 2015 -->
|
||||||
done
|
# <!-- Generated by javadoc on Tue Feb 03 00:02:48 GMT 2015 -->
|
||||||
;;
|
# <!-- Generated by javadoc (1.8.0_72) on Thu Mar 03 12:50:28 GMT 2016 -->
|
||||||
/usr/share/javadoc/gjdoc.properties |\
|
# <meta name="date" content="2015-02-03">
|
||||||
/usr/share/javadoc/*/gjdoc.properties)
|
# </head>
|
||||||
for f in old/$file new/$file; do
|
sed -i -e '
|
||||||
sed -i -e 's|^#[A-Z][a-z]\{2\} [A-Z][a-z]\{2\} [0-9]\{2\} ..:..:.. GMT 20..$|#Fri Jan 01 11:27:36 GMT 2009|' $f
|
/^<head>/{
|
||||||
done
|
: next
|
||||||
;;
|
n
|
||||||
|
/^<\/head>/{
|
||||||
|
b end_head
|
||||||
|
}
|
||||||
|
s/^<!-- Generated by javadoc ([0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) .... -->/<!-- Generated by javadoX (1.8.0_72) on Thu Mar 03 12:50:28 GMT 2016 -->/
|
||||||
|
t next
|
||||||
|
s/^\(<!-- Generated by javadoc\) \((\(build\|version\) [0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \5/
|
||||||
|
t next
|
||||||
|
s/^\(<!-- Generated by javadoc\) \(on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \3/
|
||||||
|
t next
|
||||||
|
s/^<meta name="date" content="[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}">/<meta name="date" content="some-date-removed-by-build-compare">/
|
||||||
|
b next
|
||||||
|
}
|
||||||
|
: end_head
|
||||||
|
' $f
|
||||||
|
# Gjdoc HtmlDoclet:
|
||||||
|
sed -i -e 's%Generated by Gjdoc HtmlDoclet [0-9,.]*, part of <a href="http://www.gnu.org/software/classpath/cp-tools/" title="" target="_top">GNU Classpath Tools</a>, on .*, 20.. [0-9]*:..:.. \(a\|p\)\.m\. GMT.%Generated by Gjdoc.%' $f
|
||||||
|
sed -i -e 's%<!DOCTYPE html PUBLIC "-//gnu.org///DTD XHTML 1.1 plus Target 1.0//EN"\(.*\)GNU Classpath Tools</a>, on [A-Z][a-z]* [0-9]*, 20?? [0-9]*:??:?? \(a|p\)\.m\. GMT.</p>%<!DOCTYPE html PUBLIC "-//gnu.org///DTD XHTML 1.1 plus Target 1.0//EN"\1GNU Classpath Tools</a>, on January 1, 2009 0:00:00 a.m. GMT.</p>%' $f
|
||||||
|
sed -i -e 's%<!DOCTYPE html PUBLIC "-//gnu.org///DTD\(.*GNU Classpath Tools</a>\), on [a-zA-Z]* [0-9][0-9], 20.. [0-9]*:..:.. \(a\|p\)\.m\. GMT.</p>%<!DOCTYPE html PUBLIC "-//gnu.org///DTD\1,on May 1, 2010 1:11:42 p.m. GMT.</p>%' $f
|
||||||
|
# deprecated-list is randomly ordered, sort it for comparison
|
||||||
|
case $f in
|
||||||
|
*/deprecated-list.html)
|
||||||
|
sort -o $f $f
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
/usr/share/javadoc/gjdoc.properties |\
|
||||||
|
/usr/share/javadoc/*/gjdoc.properties)
|
||||||
|
for f in old/$file new/$file; do
|
||||||
|
sed -i -e 's|^#[A-Z][a-z]\{2\} [A-Z][a-z]\{2\} [0-9]\{2\} ..:..:.. GMT 20..$|#Fri Jan 01 11:27:36 GMT 2009|' $f
|
||||||
|
done
|
||||||
|
;;
|
||||||
*/fonts.scale|*/fonts.dir|*/encodings.dir)
|
*/fonts.scale|*/fonts.dir|*/encodings.dir)
|
||||||
for f in old/$file new/$file; do
|
for f in old/$file new/$file; do
|
||||||
# sort files before comparing
|
# sort files before comparing
|
||||||
@ -624,25 +636,12 @@ check_single_file()
|
|||||||
sed -i -e 's|built by abuild@[a-z0-9]* on ... ... [0-9]* [0-9]*:[0-9][0-9]:[0-9][0-9] .* 20[0-9][0-9]|built by abuild@build42 on Thu May 6 11:21:17 UTC 2010|' $f
|
sed -i -e 's|built by abuild@[a-z0-9]* on ... ... [0-9]* [0-9]*:[0-9][0-9]:[0-9][0-9] .* 20[0-9][0-9]|built by abuild@build42 on Thu May 6 11:21:17 UTC 2010|' $f
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
/usr/share/doc/kde/HTML/*/*/index.cache|/usr/share/doc/kde/HTML/*/*/*/index.cache|\
|
|
||||||
/usr/share/gtk-doc/html/*/*.html|/usr/share/gtk-doc/html/*/*.devhelp2)
|
|
||||||
# various kde and gtk packages
|
|
||||||
strip_numbered_anchors
|
|
||||||
;;
|
|
||||||
*/created.rid)
|
*/created.rid)
|
||||||
# ruby documentation
|
# ruby documentation
|
||||||
# file just contains a timestamp and nothing else, so ignore it
|
# file just contains a timestamp and nothing else, so ignore it
|
||||||
echo "Ignore $file"
|
echo "Ignore $file"
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*/rdoc/files/*.html)
|
|
||||||
# ruby documentation
|
|
||||||
# <td>Mon Sep 20 19:02:43 +0000 2010</td>
|
|
||||||
for f in old/$file new/$file; do
|
|
||||||
sed -i -e 's%<td>[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9]\+ [0-9]\+:[0-9]\+:[0-9]\+ +0000 201[0-9]</td>%<td>Mon Sep 20 19:02:43 +0000 2010</td>%g' $f
|
|
||||||
done
|
|
||||||
strip_numbered_anchors
|
|
||||||
;;
|
|
||||||
*/Linux*Env.Set.sh)
|
*/Linux*Env.Set.sh)
|
||||||
# LibreOffice files, contains:
|
# LibreOffice files, contains:
|
||||||
# Generated on: Mon Apr 18 13:19:22 UTC 2011
|
# Generated on: Mon Apr 18 13:19:22 UTC 2011
|
||||||
|
@ -14,7 +14,19 @@
|
|||||||
CMPSCRIPT=${0%/*}/pkg-diff.sh
|
CMPSCRIPT=${0%/*}/pkg-diff.sh
|
||||||
SCMPSCRIPT=${0%/*}/srpm-check.sh
|
SCMPSCRIPT=${0%/*}/srpm-check.sh
|
||||||
|
|
||||||
check_all=1
|
file1=`mktemp`
|
||||||
|
file2=`mktemp`
|
||||||
|
_x() {
|
||||||
|
rm -f ${file1} ${file2}
|
||||||
|
}
|
||||||
|
trap _x EXIT
|
||||||
|
#
|
||||||
|
if test "$1" = "-a"
|
||||||
|
then
|
||||||
|
check_all="-a"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
#
|
||||||
OLDDIR="$1"
|
OLDDIR="$1"
|
||||||
shift
|
shift
|
||||||
NEWDIRS="$*"
|
NEWDIRS="$*"
|
||||||
@ -32,7 +44,9 @@ fi
|
|||||||
|
|
||||||
if test `find $NEWDIRS -name '*.rpm' -and ! -name '*.delta.rpm' | wc -l` != `find $OLDDIR -name '*.rpm' -and ! -name '*.delta.rpm' | wc -l`; then
|
if test `find $NEWDIRS -name '*.rpm' -and ! -name '*.delta.rpm' | wc -l` != `find $OLDDIR -name '*.rpm' -and ! -name '*.delta.rpm' | wc -l`; then
|
||||||
echo "different number of subpackages"
|
echo "different number of subpackages"
|
||||||
find $OLDDIR $NEWDIRS -name '*.rpm' -and ! -name '*.delta.rpm'
|
find $OLDDIR -name '*.rpm' -and ! -name '*.delta.rpm' -print0 | xargs -0 rpm -qp --qf '%{NAME}\n' | sort > ${file1}
|
||||||
|
find $NEWDIRS -name '*.rpm' -and ! -name '*.delta.rpm' -print0 | xargs -0 rpm -qp --qf '%{NAME}\n' | sort > ${file2}
|
||||||
|
diff -u ${file1} ${file2}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -59,8 +73,22 @@ bash $SCMPSCRIPT "$osrpm" "$nsrpm" || exit 1
|
|||||||
# problem: a package can contain both noarch and arch subpackages, so we have to
|
# problem: a package can contain both noarch and arch subpackages, so we have to
|
||||||
# take care of proper sorting of NEWRPMS, e.g. noarch/x.rpm and x86_64/w.rpm since OLDRPMS
|
# take care of proper sorting of NEWRPMS, e.g. noarch/x.rpm and x86_64/w.rpm since OLDRPMS
|
||||||
# has all the packages in a single directory and would sort this as w.rpm, x.rpm.
|
# has all the packages in a single directory and would sort this as w.rpm, x.rpm.
|
||||||
OLDRPMS=($(find "$OLDDIR" -type f -name \*rpm -a ! -name \*src.rpm -a ! -name \*.delta.rpm|sort|grep -v -- -32bit-|grep -v -- -64bit-|grep -v -- '-x86-.*\.ia64\.rpm'))
|
find "$OLDDIR" -type f -name '*.rpm' \
|
||||||
NEWRPMS=($(find $NEWDIRS -type f -name \*rpm -a ! -name \*src.rpm -a ! -name \*.delta.rpm|sort --field-separator=/ --key=7|grep -v -- -32bit-|grep -v -- -64bit-|grep -v -- '-x86-.*\.ia64\.rpm'))
|
-a ! -name '*src.rpm' \
|
||||||
|
-a ! -name '*.delta.rpm' \
|
||||||
|
-a ! -name '*-32bit-*' \
|
||||||
|
-a ! -name '*-64bit-*' \
|
||||||
|
-a ! -name '*-x86-*.ia64.rpm' \
|
||||||
|
> ${file1}
|
||||||
|
find "$NEWDIRS" -type f -name '*.rpm' \
|
||||||
|
-a ! -name '*src.rpm' \
|
||||||
|
-a ! -name '*.delta.rpm' \
|
||||||
|
-a ! -name '*-32bit-*' \
|
||||||
|
-a ! -name '*-64bit-*' \
|
||||||
|
-a ! -name '*-x86-*.ia64.rpm' \
|
||||||
|
> ${file2}
|
||||||
|
OLDRPMS=($( sort --field-separator=/ --key=` sed -n '1s@[^/]@@gp' ${file1} | wc -c ` ${file1} ))
|
||||||
|
NEWRPMS=($( sort --field-separator=/ --key=` sed -n '1s@[^/]@@gp' ${file2} | wc -c ` ${file2} ))
|
||||||
|
|
||||||
# Get version-release from first RPM and keep for rpmlint check
|
# Get version-release from first RPM and keep for rpmlint check
|
||||||
# Remember to quote the "." for future regexes
|
# Remember to quote the "." for future regexes
|
||||||
@ -84,11 +112,7 @@ for opac in ${OLDRPMS[*]}; do
|
|||||||
echo "skipping -debuginfo package"
|
echo "skipping -debuginfo package"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
bash $CMPSCRIPT "$opac" "$npac" || SUCCESS=0
|
bash $CMPSCRIPT "$check_all" "$opac" "$npac" || SUCCESS=0
|
||||||
if test $SUCCESS -eq 0 -a -z "$check_all"; then
|
|
||||||
echo "differences between $opac and $npac"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -110,8 +134,6 @@ fi
|
|||||||
|
|
||||||
if test -n "$OTHERDIR"; then
|
if test -n "$OTHERDIR"; then
|
||||||
if test -e $OLDDIR/rpmlint.log -a -e $OTHERDIR/rpmlint.log; then
|
if test -e $OLDDIR/rpmlint.log -a -e $OTHERDIR/rpmlint.log; then
|
||||||
file1=`mktemp`
|
|
||||||
file2=`mktemp`
|
|
||||||
echo "comparing $OLDDIR/rpmlint.log and $OTHERDIR/rpmlint.log"
|
echo "comparing $OLDDIR/rpmlint.log and $OTHERDIR/rpmlint.log"
|
||||||
# Sort the files first since the order of messages is not deterministic
|
# Sort the files first since the order of messages is not deterministic
|
||||||
# Remove release from files
|
# Remove release from files
|
||||||
|
Loading…
Reference in New Issue
Block a user