- Handle broken symlinks

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=219
This commit is contained in:
Olaf Hering 2016-09-21 07:20:50 +00:00 committed by Git OBS Bridge
parent 4f6b401c2a
commit 449c47c49c
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 21 07:18:37 UTC 2016 - olaf@aepfle.de
- Handle broken symlinks
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 25 14:27:34 UTC 2016 - olaf@aepfle.de Thu Aug 25 14:27:34 UTC 2016 - olaf@aepfle.de

View File

@ -21,7 +21,7 @@ Summary: Build Result Compare Script
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Tools/Building Group: Development/Tools/Building
Url: https://github.com/openSUSE/build-compare Url: https://github.com/openSUSE/build-compare
Version: 20160825T182753.c18eb00 Version: 20160921T091855.efc253f
Release: 0 Release: 0
Source1: COPYING Source1: COPYING
Source2: same-build-result.sh Source2: same-build-result.sh

View File

@ -842,7 +842,7 @@ check_single_file()
return 1 return 1
fi fi
;; ;;
symbolic\ link\ to\ *) broken\ symbolic\ link\ to\ *|symbolic\ link\ to\ *)
readlink "old/$file" > $file1 readlink "old/$file" > $file1
readlink "new/$file" > $file2 readlink "new/$file" > $file2
if ! diff -u $file1 $file2; then if ! diff -u $file1 $file2; then