[med-svn] [Git][med-team/umis][master] 3 commits: Try to force installation of the umis files

Andreas Tille gitlab at salsa.debian.org
Sat Apr 13 09:28:00 BST 2019



Andreas Tille pushed to branch master at Debian Med / umis


Commits:
2fa6b54f by Andreas Tille at 2019-04-13T07:32:37Z
Try to force installation of the umis files

- - - - -
097a89f8 by Andreas Tille at 2019-04-13T08:21:43Z
Fix test

- - - - -
19d1dcda by Andreas Tille at 2019-04-13T08:22:02Z
Hack to install binary and modules correctly

- - - - -


2 changed files:

- debian/rules
- debian/tests/run-unit-test


Changes:

=====================================
debian/rules
=====================================
@@ -3,7 +3,18 @@
 # DH_VERBOSE := 1
 export LC_ALL=C.UTF-8
 
+# that's an ugly hack - no idea why the excutable is not created without this setting and the files need to be moved around later
+export PYBUILD_NAME=umis
+#PYBUILD_DESTDIR_python3=debian/umis
+
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_install:
+	dh_install
+	mkdir -p debian/$(PYBUILD_NAME)
+	mv debian/python3-$(PYBUILD_NAME)/usr debian/$(PYBUILD_NAME)
+	rmdir debian/python3-$(PYBUILD_NAME)
+	find debian -type d -name __pycache__ | xargs rm -rf


=====================================
debian/tests/run-unit-test
=====================================
@@ -11,10 +11,12 @@ if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
   trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
 fi
 
-cp -a /usr/share/doc/${pkg}/test* "${AUTOPKGTEST_TMP}"
+cp -a /usr/share/doc/${pkg}/* "${AUTOPKGTEST_TMP}"
 
 cd "${AUTOPKGTEST_TMP}"
 
-gunzip -r *
+for gz in $(find . -type f -name "*.gz") ; do
+  if [ ! -e $(echo $gz | sed 's/\.gz$//') ] ; then gunzip $gz ; fi
+done
 
 sh test.sh



View it on GitLab: https://salsa.debian.org/med-team/umis/compare/21bae217affcdf00f12f69d9b38023f0c88b9ffb...19d1dcdaab09647e0cf51499f16dd268daf46b3a

-- 
View it on GitLab: https://salsa.debian.org/med-team/umis/compare/21bae217affcdf00f12f69d9b38023f0c88b9ffb...19d1dcdaab09647e0cf51499f16dd268daf46b3a
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190413/c260e1de/attachment-0001.html>


More information about the debian-med-commit mailing list