From 52b31cab87896198f47e8b2053c465334a98f363243356ed7be42fe1d1b63eac Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 9 Nov 2016 06:50:00 +0000 Subject: [PATCH] - Ignore /etc/ld.so.cache OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=226 --- build-compare.changes | 5 +++++ build-compare.spec | 2 +- pkg-diff.sh | 8 ++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/build-compare.changes b/build-compare.changes index 862275f..93673e1 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 9 06:48:22 UTC 2016 - olaf@aepfle.de + +- Ignore /etc/ld.so.cache + ------------------------------------------------------------------- Tue Nov 8 08:06:30 UTC 2016 - olaf@aepfle.de diff --git a/build-compare.spec b/build-compare.spec index 5ecdaab..3f057ea 100644 --- a/build-compare.spec +++ b/build-compare.spec @@ -21,7 +21,7 @@ Summary: Build Result Compare Script License: GPL-2.0+ Group: Development/Tools/Building Url: https://github.com/openSUSE/build-compare -Version: 20161108T125335.60cbc96 +Version: 20161109T074834.ab7f1f0 Release: 0 Source1: COPYING Source2: same-build-result.sh diff --git a/pkg-diff.sh b/pkg-diff.sh index b217372..34827c5 100644 --- a/pkg-diff.sh +++ b/pkg-diff.sh @@ -735,10 +735,14 @@ check_single_file() sed -i '/^InitrdID:/s@^.*@InitrdID: something@' "old/$file" sed -i '/^InitrdID:/s@^.*@InitrdID: something@' "new/$file" ;; + */ld.so.cache) + # packaged by libguestfs + return 0 + ;; */etc/hosts) # packaged by libguestfs - sed -i '/^127.0.0.1[[:blank:]].*/127.0.0.1 hst/' "old/$file" - sed -i '/^127.0.0.1[[:blank:]].*/127.0.0.1 hst/' "new/$file" + sed -i 's/^127.0.0.1[[:blank:]].*/127.0.0.1 hst/' "old/$file" + sed -i 's/^127.0.0.1[[:blank:]].*/127.0.0.1 hst/' "new/$file" ;; esac