From 72c12e67f0f4092ddd837d5f5972cf767419add80eca936c4906464f98f391ef Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 4 Feb 2015 16:13:15 +0000 Subject: [PATCH] - 2015.02.04 - Handle ruby gem files, they are tar archives (bnc#916047) - Remove Creator: and CreationDate: tags from .ps files (bnc#915952) OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=165 --- build-compare.changes | 7 +++++++ build-compare.spec | 3 ++- rpm-check.sh | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/build-compare.changes b/build-compare.changes index ee23b6b..d36ff52 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Feb 4 15:53:05 UTC 2015 - olaf@aepfle.de + +- 2015.02.04 +- Handle ruby gem files, they are tar archives (bnc#916047) +- Remove Creator: and CreationDate: tags from .ps files (bnc#915952) + ------------------------------------------------------------------- Tue Feb 3 11:34:39 UTC 2015 - olaf@aepfle.de diff --git a/build-compare.spec b/build-compare.spec index 443c4f6..51ed2ee 100644 --- a/build-compare.spec +++ b/build-compare.spec @@ -20,7 +20,8 @@ Name: build-compare Summary: Build Result Compare Script License: GPL-2.0+ Group: Development/Tools/Building -Version: 2015.02.03 +Url: https://github.com/openSUSE/build-compare +Version: 2015.02.04 Release: 0 Source1: COPYING Source2: same-build-result.sh diff --git a/rpm-check.sh b/rpm-check.sh index 110c414..83b0570 100644 --- a/rpm-check.sh +++ b/rpm-check.sh @@ -547,6 +547,14 @@ check_single_file() echo "$file and $oldfn are same" return 0 ;; + *.ps) + for f in "old/$file" "new/$file"; do + sed -i -e ' + /^%%CreationDate:[[:blank:]]/d + /^%%Creator:[[:blank:]]groff[[:blank:]]version[[:blank:]]/d + ' "$f" + done + ;; *pdf) # PDF files contain a unique ID, remove it # Format of the ID is: @@ -648,6 +656,13 @@ check_single_file() return 1 fi ;; + POSIX\ tar\ archive) + mv old/$file{,.tar} + mv new/$file{,.tar} + if ! check_single_file ${file}.tar; then + return 1 + fi + ;; cpio\ archive) mv old/$file{,.cpio} mv new/$file{,.cpio}