Commit ac9c8c1e authored by Hilko Bengen's avatar Hilko Bengen

Add python2/python3 support

parent b8c400be
This diff is collapsed.
#!/bin/sh
find debian/tmp/usr/bin -name \*.py | while read f
do
echo $f:
head -n1 $f
if head -n1 "$f" | grep python3; then
mv "$f" "$f-python3"
else
mv "$f" "$f-python2"
fi
done
plaso (20190131-1) unstable; urgency=medium
There is now the option to run Plaso with either Python 2 or Python 3,
using the python-plaso and python3-plaso packages, respectively.
The update-alternatives(1) program can be used to select which Python version
will be used globally. To select python2 or python3 on a per-call basis, the
following program names are available:
* log2timeline.py-python2, log2timeline.py-python3
* image_export.py-python2, image_export.py-python3
* pinfo.py-python2, pinfo.py-python3
* psort.py-python2, psort.py-python3
* psteal.py-python2, psteal.py-python3
-- Hilko Bengen <bengen@debian.org> Sat, 09 Feb 2019 23:53:49 +0100
/usr/lib/python2*
/usr/bin/*-python2
#!/bin/sh
set -e
case "${1}" in
configure)
update-alternatives \
--install /usr/bin/log2timeline.py log2timeline.py /usr/bin/log2timeline.py-python2 50 \
--slave /usr/bin/image_export.py image_export.py /usr/bin/image_export.py-python2 \
--slave /usr/bin/pinfo.py pinfo.py /usr/bin/pinfo.py-python2 \
--slave /usr/bin/psort.py psort.py /usr/bin/psort.py-python2 \
--slave /usr/bin/psteal.py psteal.py /usr/bin/psteal.py-python2
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
#!/bin/sh
set -e
case "${1}" in
remove|deconfigure)
update-alternatives --remove log2timeline.py /usr/bin/log2timeline.py-python2
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
/usr/lib/python3*
/usr/bin/*-python3
#!/bin/sh
set -e
case "${1}" in
configure)
update-alternatives \
--install /usr/bin/log2timeline.py log2timeline.py /usr/bin/log2timeline.py-python3 100 \
--slave /usr/bin/image_export.py image_export.py /usr/bin/image_export.py-python3 \
--slave /usr/bin/pinfo.py pinfo.py /usr/bin/pinfo.py-python3 \
--slave /usr/bin/psort.py psort.py /usr/bin/psort.py-python3 \
--slave /usr/bin/psteal.py psteal.py /usr/bin/psteal.py-python3
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
#!/bin/sh
set -e
case "${1}" in
remove|deconfigure)
update-alternatives --remove log2timeline.py /usr/bin/log2timeline.py-python3
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
...@@ -9,8 +9,10 @@ include /usr/share/dpkg/default.mk ...@@ -9,8 +9,10 @@ include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax # main packaging script based on dh7 syntax
%: %:
dh $@ --buildsystem=pybuild --with=python2 dh $@ --buildsystem=pybuild --with=python2,python3
override_dh_auto_install:
dh_auto_install -- --after-install debian/fix-scripts.sh
override_dh_compress: override_dh_compress:
dh_compress -X.rst dh_compress -X.rst
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment