Bug#1104515: blends fails to reproduce due to emtpy apt cache (future FTBFS)
Source: blends
Version: 0.7.10
Severity: normal
Tags: ftbfs patch
User: debian-qa@lists.debian.org
Usertags: apt-cache
Hi,
blends uses the apt cache during testing. This breaks on reproduce.d.n
as it has an empty apt cache:
https://reproduce.debian.net/all/#blends-common
The attached patch avoids running the test in that case.
In addition the sbuild team plans to clean the apt cache before building
the package by default in forky which would make this package FTBFS.
This would also be fixed with the patch.
Cheers Jochen
diff --git a/debian/rules b/debian/rules
index 478475a..99c34ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,10 +17,12 @@ override_dh_auto_build:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(wildcard /var/lib/apt/lists/*Packages))
pytest-3 --doctest-modules
rm -f education # clean up test remnants
find . -type d -name __pycache__ | xargs rm -rf
endif
+endif
override_dh_installchangelogs:
for pkgnews in $(DEB_SOURCE)-common $(DEB_SOURCE)-dev ; do \
Reply to: