From 18b7878e566af4a1a66bf55dcab9023963854dfdb0bf7d3eb13df1d430010046 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 3 Feb 2015 16:50:57 +0000 Subject: [PATCH] - Use correct offset for patching mtime out of .pyc files OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=163 --- build-compare.changes | 1 + rpm-check.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build-compare.changes b/build-compare.changes index 3ed89eb..f1c0a56 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -4,6 +4,7 @@ Tue Feb 3 11:34:39 UTC 2015 - olaf@aepfle.de - 2015.02.03 - Trim .TH also in perl man pages (bnc#915941) - Trim first line of man page to catch overly verbose tools +- Use correct offset for patching mtime out of .pyc files ------------------------------------------------------------------- Mon Feb 2 10:05:40 UTC 2015 - olaf@aepfle.de diff --git a/rpm-check.sh b/rpm-check.sh index 4e6d7d7..110c414 100644 --- a/rpm-check.sh +++ b/rpm-check.sh @@ -373,8 +373,8 @@ check_single_file() done return $ret;; *.pyc|*.pyo) - perl -e "open fh, '+<', 'old/$file'; seek fh, 3, SEEK_SET; print fh '0000';" - perl -e "open fh, '+<', 'new/$file'; seek fh, 3, SEEK_SET; print fh '0000';" + perl -e "open fh, '+<', 'old/$file'; seek fh, 4, SEEK_SET; print fh '0000';" + perl -e "open fh, '+<', 'new/$file'; seek fh, 4, SEEK_SET; print fh '0000';" ;; *.bz2) bunzip2 -c old/$file > old/${file/.bz2/}