Re: Using debbisect in "reverse"
Ok, I found the way.
In addition to "good" becoming "bad" and "bad" becoming "good"
(because debbisect insist that "bad" has to be older than "good"),
it is enough to use a modified debbisect_buildsrc.sh script
which inverts the exit status, as in the attached patch.
Thanks.
--- debbisect_buildsrc.sh 2024-11-13 12:47:13.897429495 +0000
+++ debbisect_buildsrc_inverted.sh 2024-11-13 16:43:42.484568969 +0000
@@ -8,7 +8,7 @@
set -eu
-mmdebstrap --variant=apt unstable \
+if mmdebstrap --variant=apt unstable \
--aptopt='Apt::Key::gpgvcommand "/usr/share/debuerreotype/scripts/.gpgv-ignore-expiration.sh"' \
--aptopt='Acquire::Check-Valid-Until "false"' \
--customize-hook='chroot "$1" apt-get --yes build-dep '"$DEBIAN_BISECT_SRCPKG" \
@@ -17,4 +17,8 @@
--customize-hook='rm "$1"/pkglist' \
--customize-hook="chroot \"\$1\" dpkg-query --showformat '\${binary:Package}=\${Version}\n' --show" \
--customize-hook='chroot "$1" apt-get source --build '"$DEBIAN_BISECT_SRCPKG" \
-/dev/null $DEBIAN_BISECT_MIRROR "deb-src $DEBIAN_BISECT_MIRROR unstable main"
+/dev/null $DEBIAN_BISECT_MIRROR "deb-src $DEBIAN_BISECT_MIRROR unstable main"; then
+ exit 1
+else
+ exit 0
+fi
Reply to: