forked from pool/build-compare
checked in
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=41
This commit is contained in:
parent
50ea83acb4
commit
f99f2c68bc
@ -1,9 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed Oct 14 07:14:37 UTC 2009 - aj@suse.de
|
|
||||||
|
|
||||||
- Replace external /usr/bin/unrpm by small function to get
|
|
||||||
rid of dependency of build.rpm.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 24 06:47:22 UTC 2009 - aj@suse.de
|
Thu Sep 24 06:47:22 UTC 2009 - aj@suse.de
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package build-compare (Version 2009.10.14)
|
# spec file for package build-compare (Version 2009.08.20)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -23,8 +23,8 @@ License: GPL v2 or later
|
|||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: Build Result Compare Script
|
Summary: Build Result Compare Script
|
||||||
Version: 2009.10.14
|
Version: 2009.08.20
|
||||||
Release: 1
|
Release: 3
|
||||||
Source: same-build-result.sh
|
Source: same-build-result.sh
|
||||||
Source1: rpm-check.sh
|
Source1: rpm-check.sh
|
||||||
Source2: COPYING
|
Source2: COPYING
|
||||||
|
21
rpm-check.sh
21
rpm-check.sh
@ -8,6 +8,11 @@
|
|||||||
|
|
||||||
RPM="rpm -qp --nodigest --nosignature"
|
RPM="rpm -qp --nodigest --nosignature"
|
||||||
|
|
||||||
|
if [ ! -e /usr/bin/unrpm ] ; then
|
||||||
|
echo "unrpm is not installed - comparison not possible"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
check_all=
|
check_all=
|
||||||
case $1 in
|
case $1 in
|
||||||
-a | --check-all)
|
-a | --check-all)
|
||||||
@ -33,18 +38,6 @@ if test ! -f $newrpm; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#usage unrpm <file>
|
|
||||||
# Unpack rpm files in current directory
|
|
||||||
# like /usr/bin/unrpm - just for one file and with no options
|
|
||||||
function unrpm()
|
|
||||||
{
|
|
||||||
local file
|
|
||||||
file=$1
|
|
||||||
CPIO_OPTS="--extract --unconditional --preserve-modification-time --make-directories --quiet"
|
|
||||||
|
|
||||||
rpm2cpio $file | cpio ${CPIO_OPTS}
|
|
||||||
}
|
|
||||||
|
|
||||||
#usage unjar <file>
|
#usage unjar <file>
|
||||||
function unjar()
|
function unjar()
|
||||||
{
|
{
|
||||||
@ -209,12 +202,12 @@ dir=`mktemp -d`
|
|||||||
cd $dir
|
cd $dir
|
||||||
mkdir old
|
mkdir old
|
||||||
cd old
|
cd old
|
||||||
unrpm $oldrpm
|
/usr/bin/unrpm -q $oldrpm
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
mkdir new
|
mkdir new
|
||||||
cd new
|
cd new
|
||||||
unrpm $newrpm
|
/usr/bin/unrpm -q $newrpm
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
dfile=`mktemp`
|
dfile=`mktemp`
|
||||||
|
Loading…
Reference in New Issue
Block a user