Added alternative packaging for subunit-trace
This commit is contained in:
12
debian/python-tempest-lib.postinst
vendored
Normal file
12
debian/python-tempest-lib.postinst
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "configure" ] ; then
|
||||||
|
update-alternatives --install /usr/bin/subunit-trace subunit-trace /usr/bin/python2-subunit-trace 300
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
12
debian/python-tempest-lib.postrm
vendored
Normal file
12
debian/python-tempest-lib.postrm
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then
|
||||||
|
update-alternatives --remove subunit-trace /usr/bin/python2-subunit-trace
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
12
debian/python-tempest-lib.prerm
vendored
Normal file
12
debian/python-tempest-lib.prerm
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "remove" ] ; then
|
||||||
|
update-alternatives --remove subunit-trace /usr/bin/python2-subunit-trace
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
12
debian/python3-tempest-lib.postinst
vendored
Normal file
12
debian/python3-tempest-lib.postinst
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "configure" ] ; then
|
||||||
|
update-alternatives --install /usr/bin/subunit-trace subunit-trace /usr/bin/python3-subunit-trace 200
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
12
debian/python3-tempest-lib.postrm
vendored
Normal file
12
debian/python3-tempest-lib.postrm
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then
|
||||||
|
update-alternatives --remove subunit-trace /usr/bin/python3-subunit-trace
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
12
debian/python3-tempest-lib.prerm
vendored
Normal file
12
debian/python3-tempest-lib.prerm
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "remove" ] ; then
|
||||||
|
update-alternatives --remove subunit-trace /usr/bin/python3-subunit-trace
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
@@ -16,10 +16,12 @@ override_dh_install:
|
|||||||
python$$pyvers setup.py install --install-layout=deb \
|
python$$pyvers setup.py install --install-layout=deb \
|
||||||
--root $(CURDIR)/debian/python-tempest-lib; \
|
--root $(CURDIR)/debian/python-tempest-lib; \
|
||||||
done
|
done
|
||||||
|
mv $(CURDIR)/debian/python-tempest-lib/usr/bin/subunit-trace $(CURDIR)/debian/python-tempest-lib/usr/bin/python2-subunit-trace
|
||||||
set -e ; for pyvers in $(PYTHON3S); do \
|
set -e ; for pyvers in $(PYTHON3S); do \
|
||||||
python$$pyvers setup.py install --install-layout=deb \
|
python$$pyvers setup.py install --install-layout=deb \
|
||||||
--root $(CURDIR)/debian/python3-tempest-lib; \
|
--root $(CURDIR)/debian/python3-tempest-lib; \
|
||||||
done
|
done
|
||||||
|
mv $(CURDIR)/debian/python3-tempest-lib/usr/bin/subunit-trace $(CURDIR)/debian/python3-tempest-lib/usr/bin/python3-subunit-trace
|
||||||
rm -rf $(CURDIR)/debian/python*-tempest-lib/usr/lib/python*/dist-packages/*.pth
|
rm -rf $(CURDIR)/debian/python*-tempest-lib/usr/lib/python*/dist-packages/*.pth
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
|
Reference in New Issue
Block a user