Hello community,

here is the log from the commit of package build-compare for openSUSE:Factory 
checked in at 2012-05-08 18:00:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/build-compare (Old)
 and      /work/SRC/openSUSE:Factory/.build-compare.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "build-compare", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/build-compare/build-compare.changes      
2012-05-07 22:45:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.build-compare.new/build-compare.changes 
2012-05-08 18:00:38.000000000 +0200
@@ -1,0 +2,6 @@
+Tue May  8 12:35:21 UTC 2012 - [email protected]
+
+- Further handling of pdf files (bnc#760867), patch by
+  David Haller <[email protected]>.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rpm-check.sh ++++++
--- /var/tmp/diff_new_pack.SvJx15/_old  2012-05-08 18:00:41.000000000 +0200
+++ /var/tmp/diff_new_pack.SvJx15/_new  2012-05-08 18:00:41.000000000 +0200
@@ -138,7 +138,7 @@
 
 check_single_file()
 { 
-  local file=$1
+  local file="$1"
   case $file in
     *.spec)
        sed -i -e "s,Release:.*$release1,Release: @RELEASE@," old/$file
@@ -406,13 +406,22 @@
       # PDF files contain a unique ID, remove it
       # Format of the ID is:
       # /ID [<9ACE247A70CF9BEAFEE15E116259BD6D> 
<9ACE247A70CF9BEAFEE15E116259BD6D>]
-      # pdftex creates also:
+      # with optional spaces. 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%/CreationDate (D:.*)%/CreationDate (D: XXX)%g' $f
-       sed -i -e 's%/ModDate (D:.*)%/ModDate (D: XXX)%g' $f
+      # and possibly XML metadata as well
+      for f in "old/$file" "new/$file"; do
+        sed -i \
+            '/obj/,/endobj/{
+               s%/ID \?\[ \?<[^>]\+> \?<[^>]\+> \?\]%/IDrandom%g;
+               s%/CreationDate \?(D:[^)]*)%/CreationDate (D: XXX)%g;
+               s%/ModDate \?(D:[^)]*)%/ModDate (D: XXX)%g;
+               
s%<pdf:CreationDate>[^<]*</pdf:CreationDate>%<pdf:CreationDate>XXX</pdf:CreationDate>%g;
+               
s%<pdf:ModDate>[^<]*</pdf:ModDate>%<pdf:ModDate>XXX</pdf:ModDate>%g;
+               
s%<xap:CreateDate>[^<]*</xap:CreateDate>%<xap:CreateDate>XXX</xap:CreateDate>%g;
+               
s%<xap:ModifyDate>[^<]*</xap:ModifyDate>%<xap:ModifyDate>XXX</xap:ModifyDate>%g;
+               
s%<xap:MetadataDate>[^<]*</xap:MetadataDate>%<xap:MetadataDate>XXX</xap:MetadataDate>%g;
+            }' "$f"
       done
       ;;
   esac

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to