From 59605d322908677fa6c9acf6ced9b3b50bde814a81e9dcb3b56cd99b09d8e04e Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 7 May 2012 14:54:19 +0000 Subject: [PATCH] Accepting request 116654 from home:a_jaeger:branches:build-compare-test Improve pdf handling OBS-URL: https://build.opensuse.org/request/show/116654 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=132 --- build-compare.changes | 5 +++++ rpm-check.sh | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build-compare.changes b/build-compare.changes index 01b2f8b..6b8871c 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 7 14:50:43 UTC 2012 - aj@suse.de + +- Further handling of pdf files (bnc#760867). + ------------------------------------------------------------------- Mon May 7 11:30:28 UTC 2012 - aj@suse.de diff --git a/rpm-check.sh b/rpm-check.sh index 08e9cab..5d4f4d0 100644 --- a/rpm-check.sh +++ b/rpm-check.sh @@ -406,8 +406,13 @@ check_single_file() # PDF files contain a unique ID, remove it # Format of the ID is: # /ID [<9ACE247A70CF9BEAFEE15E116259BD6D> <9ACE247A70CF9BEAFEE15E116259BD6D>] + # pdftex creates also: + # /CreationDate (D:20120103083206Z) + # /ModDate (D:20120103083206Z) for f in old/$file new/$file; do - sed -i -e 's/ID \[ \?<.*> <.*> \?\]/IDrandom/g' $f + sed -i -e 's%/ID \?\[ \?<[^>]\+> <[^>]\+> \?\]%/IDrandom%g' $f + sed -i -e 's%/CreationDate (D:.*)%/CreationDate (D: XXX)%g' $f + sed -i -e 's%/ModDate (D:.*)%/ModDate (D: XXX)%g' $f done ;; esac