Skip to content

Commit

Permalink
Change hack for detecting bs_worker builds
Browse files Browse the repository at this point in the history
Also touch the /.build.packages/same_result_marker file like
expected by the worker.
  • Loading branch information
mlschroe committed Oct 9, 2024
1 parent a4b420d commit 8f88e3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build-recipe-spec
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ recipe_compare_oldpackages() {
echo "... comparing built packages with the former built"
if chroot $BUILD_ROOT /usr/lib/build/same-build-result.sh /.build.oldpackages "$TOPDIR/RPMS" "$TOPDIR/SRPMS"; then
chroot $BUILD_ROOT touch /.build/.same_result_marker
# XXX: dirty build service hack. fix bs_worker. Search for
# 'same_result_marker' for traces of a first try to get rid of this
if test -n "$REASON" -a -n "$DISTURL" ; then
exitcode=2
fi
chroot $BUILD_ROOT touch /.build.packages/same_result_marker
# dirty build service hack. return exit status 2 to bs_worker for unchanged builds
case "$REASON" in
Building\ *\ for\ project\ *\ repository\ *\ srcmd5\ *) exitcode=2 ;;
esac
fi
fi
}
Expand Down

0 comments on commit 8f88e3b

Please sign in to comment.