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}