1 From 657983ef9ca8f8354172682e17408c4f6b5bc667 Mon Sep 17 00:00:00 2001
2 From: Robert Yang <liezhi.yang@windriver.com>
3 Date: Thu, 14 Jul 2016 19:46:08 -0700
4 Subject: [PATCH 1/4] pkg-diff.sh: check_single_file(): return at once when
7 If the two files are the same, return at once, this can save a lot of
8 time when there are archives inside archives.
10 Upstream-Status: Submitted [https://github.com/openSUSE/build-compare/pull/10]
12 Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
14 pkg-diff.sh | 7 +++++++
15 1 file changed, 7 insertions(+)
17 diff --git a/pkg-diff.sh b/pkg-diff.sh
18 index 3cf10aa..402d4a4 100644
21 @@ -293,6 +293,13 @@ check_compressed_file()
26 + # If the two files are the same, return at once.
27 + if [ -f old/$file -a -f new/$file ]; then
28 + if cmp -s old/$file new/$file; then
34 sed -i -e "s,Release:.*$release1,Release: @RELEASE@," old/$file