From dbbbced6108c9307712f9468b385cc3fb55f14dd955be8c8d8d60866effc6e93 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 9 Feb 2009 01:05:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/build-compare?expand=0&rev=6 --- build-compare.changes | 5 +++++ build-compare.spec | 4 +++- rpm-check.sh | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) 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