[Git][reproducible-builds/reprotest][master] d/rules: emit an error message on version mismatch

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Sep 3 08:59:11 UTC 2022



Holger Levsen pushed to branch master at Reproducible Builds / reprotest


Commits:
bfa0eca4 by Philip Hands at 2022-09-03T10:58:43+02:00
d/rules: emit an error message on version mismatch

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- debian/rules


Changes:

=====================================
debian/rules
=====================================
@@ -20,7 +20,7 @@ export PYBUILD_NAME = reprotest
 export REPROTEST_TEST_DONTVARY = fileordering,user_group,domain_host$(if $(shell nproc | grep --color=no -Fx 1),$(,)num_cpus,)
 
 execute_before_dh_auto_configure:
-	test $$(python3 setup.py --version) = $$(echo $(DEB_VERSION) | sed 's/[^0-9.].*//')
+	rv=$$(python3 setup.py --version); dv=$$(echo $(DEB_VERSION) | sed 's/[^0-9.].*//'); test "$$rv" = "$$dv" || { printf "ERROR: version mismatch: setup.py (version=%s) does not match Debian version (%s)\n" "$$rv" "$$dv"; false; }
 
 execute_after_dh_auto_build:
 	$(MAKE) -C doc



View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/-/commit/bfa0eca448ff3160ef31c3b158933ff156c4479c

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/-/commit/bfa0eca448ff3160ef31c3b158933ff156c4479c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20220903/4c7e1a91/attachment.htm>


More information about the rb-commits mailing list