Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package obs-service-source_validator for openSUSE:Factory checked in at 2022-08-05 19:50:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/obs-service-source_validator (Old) and /work/SRC/openSUSE:Factory/.obs-service-source_validator.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-service-source_validator" Fri Aug 5 19:50:18 2022 rev:56 rq:992725 version:0.25 Changes: -------- --- /work/SRC/openSUSE:Factory/obs-service-source_validator/obs-service-source_validator.changes 2022-07-09 16:58:59.656432212 +0200 +++ /work/SRC/openSUSE:Factory/.obs-service-source_validator.new.1521/obs-service-source_validator.changes 2022-08-05 19:50:47.913424292 +0200 @@ -1,0 +2,6 @@ +Thu Aug 04 08:20:29 UTC 2022 - dmuel...@suse.com + +- Update to version 0.25 (bsc#1202132) + * Reject empty or ill-formatted patches + +------------------------------------------------------------------- Old: ---- obs-service-source_validator-0.24.tar.bz2 New: ---- obs-service-source_validator-0.25.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ obs-service-source_validator.spec ++++++ --- /var/tmp/diff_new_pack.4dxlwB/_old 2022-08-05 19:50:48.329425366 +0200 +++ /var/tmp/diff_new_pack.4dxlwB/_new 2022-08-05 19:50:48.333425377 +0200 @@ -21,7 +21,7 @@ License: GPL-2.0-or-later Group: Development/Tools/Building URL: https://github.com/openSUSE/obs-service-source_validator -Version: 0.24 +Version: 0.25 Release: 0 # use osc service dr to update Source: %{name}-%{version}.tar.bz2 ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.4dxlwB/_old 2022-08-05 19:50:48.369425470 +0200 +++ /var/tmp/diff_new_pack.4dxlwB/_new 2022-08-05 19:50:48.369425470 +0200 @@ -3,6 +3,6 @@ <param name="url">git://github.com/openSUSE/obs-service-source_validator.git</param> <param name="changesrevision">c68d7a28c4ecd88b179359b030098503e75adc0b</param></service><service name="tar_scm"> <param name="url">https://github.com/openSUSE/obs-service-source_validator.git</param> - <param name="changesrevision">7f3e827602e97916d8bfe713da64579d0f67cfbd</param></service></servicedata> + <param name="changesrevision">f1d506e1b2cece7ce0e0febe892c825de644bc25</param></service></servicedata> (No newline at EOF) ++++++ debian.dsc ++++++ --- /var/tmp/diff_new_pack.4dxlwB/_old 2022-08-05 19:50:48.385425511 +0200 +++ /var/tmp/diff_new_pack.4dxlwB/_new 2022-08-05 19:50:48.389425521 +0200 @@ -1,6 +1,6 @@ Format: 1.0 Source: obs-service-source-validator -Version: 0.24-0 +Version: 0.25-0 Binary: obs-service-source-validator Maintainer: Hib Eris <h...@hiberis.nl> Architecture: all ++++++ obs-service-source_validator-0.24.tar.bz2 -> obs-service-source_validator-0.25.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/obs-service-source_validator-0.24/20-files-present-and-referenced new/obs-service-source_validator-0.25/20-files-present-and-referenced --- old/obs-service-source_validator-0.24/20-files-present-and-referenced 2022-07-07 18:04:48.000000000 +0200 +++ new/obs-service-source_validator-0.25/20-files-present-and-referenced 2022-08-03 20:32:59.000000000 +0200 @@ -159,6 +159,30 @@ done fi +# Check for empty or ill-formatted patches + +for f in $(<$TMPDIR/sources); do + case $f in + *.dif|*.diff|*.patch) + if ! test -s "$DIR_TO_CHECK/$f"; then + echo "ERROR: Patch file $f is zero bytes long, remove empty patch?" + RETURN=2 + fi + if test "$(type -p patch)"; then + patch -s -t --dry-run -i "$DIR_TO_CHECK/$f" >/dev/null + # example a file that only contains a commit header but does not actually + # modify any files gives this error message. we treat it as an error + # because it is most likely a failed quilt run/erratic vulnerability patch + # backport + if test $? = 2; then + echo "ERROR: Patch file $f does not validate." + RETURN=2 + fi + fi + ;; + esac +done + # # now check if everything is marked in spec files. #