Skip to content
Snippets Groups Projects
Commit cb2da24b authored by Thomas Goirand's avatar Thomas Goirand
Browse files

* Manage /usr/bin/jsondiff with update-alternatives to avoid clash with

    python3-jsondiff (Closes: #926250).
parent eb9a54df
No related branches found
No related tags found
No related merge requests found
python-json-patch (1.23-3) UNRELEASED; urgency=medium
python-json-patch (1.23-3) unstable; urgency=medium
[ Ondřej Nový ]
* Bump Standards-Version to 4.4.0.
-- Ondřej Nový <onovy@debian.org> Fri, 19 Jul 2019 16:15:08 +0200
[ Thomas Goirand ]
* Manage /usr/bin/jsondiff with update-alternatives to avoid clash with
python3-jsondiff (Closes: #926250).
-- Thomas Goirand <zigo@debian.org> Thu, 05 Sep 2019 15:01:23 +0200
python-json-patch (1.23-2) unstable; urgency=medium
......
#!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
update-alternatives --install /usr/bin/jsondiff jsondiff /usr/bin/jsonpatch-jsondiff 200
fi
#DEBHELPER#
exit 0
......@@ -4,6 +4,7 @@ set -e
if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then
update-alternatives --remove jsondiff /usr/bin/python3-jsondiff
update-alternatives --remove jsondiff /usr/bin/jsonpatch-jsondiff
update-alternatives --remove jsonpatch /usr/bin/python3-jsonpatch
fi
......
#!/bin/sh
set -e
if [ "${1}" = "upgrade" ] ; then
if [ ! -h /usr/bin/jsondiff ] && [ -e /usr/bin/jsondiff ] ; then
rm /usr/bin/jsondiff
fi
if [ ! -h /usr/bin/jsonpatch ] && [ -e /usr/bin/jsonpatch ] ; then
rm /usr/bin/jsonpatch
fi
fi
#DEBHELPER#
exit 0
......@@ -4,6 +4,7 @@ set -e
if [ "$1" = "remove" ] ; then
update-alternatives --remove jsondiff /usr/bin/python3-jsondiff
update-alternatives --remove jsondiff /usr/bin/jsonpatch-jsondiff
update-alternatives --remove jsonpatch /usr/bin/python3-jsonpatch
fi
......
......@@ -21,5 +21,9 @@ override_dh_auto_test:
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages python$$pyvers ./tests.py ; \
done
override_dh_install:
dh_install
mv $(CURDIR)/debian/python3-jsonpatch/usr/bin/jsondiff $(CURDIR)/debian/python3-jsonpatch/usr/bin/jsonpatch-jsondiff
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment