- handle oddly named ZIP archives

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=268
This commit is contained in:
Olaf Hering 2020-05-05 07:00:09 +00:00 committed by Git OBS Bridge
parent 860fa11e3d
commit fd3e3dbbfb
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 5 05:05:05 UTC 2020 - olaf@aepfle.de
- handle oddly named ZIP archives
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 31 09:09:09 UTC 2020 - olaf@aepfle.de Tue Mar 31 09:09:09 UTC 2020 - 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: 20200331T115051.28bf642 Version: 20200505T085902.593c795
Release: 0 Release: 0
Source1: COPYING Source1: COPYING
Source2: same-build-result.sh Source2: same-build-result.sh

View File

@ -1047,6 +1047,11 @@ check_single_file()
return 1 return 1
fi fi
;; ;;
Zip\ archive\ data,*)
if ! compare_archive "${file}" 'archive_zip' ; then
return 1
fi
;;
POSIX\ tar\ archive) POSIX\ tar\ archive)
mv old/$file{,.tar} mv old/$file{,.tar}
mv new/$file{,.tar} mv new/$file{,.tar}