diff --git a/build-compare.changes b/build-compare.changes index 93e0647..584b105 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 8 21:48:27 CET 2009 - coolo@suse.de + +- fix handling of hardlinks to compressed files + ------------------------------------------------------------------- Sat Feb 7 21:05:30 CET 2009 - coolo@suse.de diff --git a/build-compare.spec b/build-compare.spec index c571fcc..e696f61 100644 --- a/build-compare.spec +++ b/build-compare.spec @@ -24,7 +24,7 @@ Group: Development/Tools/Building AutoReqProv: on Summary: Build Result Compare Script Version: 2009.01.27 -Release: 6 +Release: 7 Source: same-build-result.sh Source1: rpm-check.sh Source2: COPYING @@ -54,6 +54,8 @@ install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/%_defaultdocdir/%name/ /usr/lib/build %changelog +* Sun Feb 08 2009 coolo@suse.de +- fix handling of hardlinks to compressed files * Sat Feb 07 2009 coolo@suse.de - fix handling of -32bit and -64bit * Sat Feb 07 2009 coolo@suse.de diff --git a/rpm-check.sh b/rpm-check.sh index 8ea4fb8..6b43444 100644 --- a/rpm-check.sh +++ b/rpm-check.sh @@ -175,11 +175,13 @@ check_single_file() perl -E "open fh, '+<', 'new/$file'; seek fh, 3, SEEK_SET; print fh '0000';" ;; *.bz2) - bunzip2 old/$file new/$file + bunzip2 -c old/$file > old/${file/.bz2/} + bunzip2 -c new/$file > new/${file/.bz2/} check_single_file ${file/.bz2/} continue;; *.gz) - gunzip old/$file new/$file + gunzip -c old/$file > old/${file/.gz/} + gunzip -c new/$file > new/${file/.gz/} check_single_file ${file/.gz/} continue;; esac