From 1331f5c886cd6800ce20453a5be2c35cbd0042b133791ba75aa9d63d9fe12214 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 7 May 2012 11:33:30 +0000 Subject: [PATCH] Accepting request 116637 from home:a_jaeger:branches:build-compare-test Handle /ID in pdf files. OBS-URL: https://build.opensuse.org/request/show/116637 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=131 --- build-compare.changes | 5 +++++ rpm-check.sh | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/build-compare.changes b/build-compare.changes index 7986ebd..01b2f8b 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 7 11:30:28 UTC 2012 - aj@suse.de + +- Handle /ID in pdf files (bnc#760867). + ------------------------------------------------------------------- Wed Apr 4 18:25:48 UTC 2012 - reddwarf@opensuse.org diff --git a/rpm-check.sh b/rpm-check.sh index 0fc7dca..08e9cab 100644 --- a/rpm-check.sh +++ b/rpm-check.sh @@ -1,6 +1,6 @@ #! /bin/bash # -# Copyright (c) 2009, 2010, 2011 SUSE Linux Product GmbH, Germany. +# Copyright (c) 2009, 2010, 2011, 2012 SUSE Linux Product GmbH, Germany. # Licensed under GPL v2, see COPYING file for details. # # Written by Michael Matz and Stephan Coolo @@ -402,6 +402,14 @@ check_single_file() echo "Ignore $file" return 0 ;; + *pdf) + # PDF files contain a unique ID, remove it + # Format of the ID is: + # /ID [<9ACE247A70CF9BEAFEE15E116259BD6D> <9ACE247A70CF9BEAFEE15E116259BD6D>] + for f in old/$file new/$file; do + sed -i -e 's/ID \[ \?<.*> <.*> \?\]/IDrandom/g' $f + done + ;; esac ftype=`/usr/bin/file old/$file | cut -d: -f2-`