summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2018-03-14 19:55:17 +0100
committerintrigeri <intrigeri@boum.org>2018-03-16 13:20:43 +0000
commit85d42412212002dd51e23d3775b56966e807f6cd (patch)
tree05d42b653f75a297b259a99c3b324b83f40ecf4f
parentbd0c0b67b80d2572c9b39cb5e2fd482243f2fcc1 (diff)
Strip dates from Tailslib Python package
Will-fix: #15400
-rwxr-xr-xconfig/chroot_local-hooks/00-install-tailslib9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/chroot_local-hooks/00-install-tailslib b/config/chroot_local-hooks/00-install-tailslib
index 4be37e0..a3b0505 100755
--- a/config/chroot_local-hooks/00-install-tailslib
+++ b/config/chroot_local-hooks/00-install-tailslib
@@ -5,7 +5,7 @@ set -u
echo "Installing the tailslib python library"
-# Import ensure_hook_dependency_is_installed()
+# Import ensure_hook_dependency_is_installed() and strip_nondeterminism_wrapper()
. /usr/local/lib/tails-shell-library/build.sh
ensure_hook_dependency_is_installed python3-setuptools
@@ -14,5 +14,12 @@ ensure_hook_dependency_is_installed python3-setuptools
cd /tmp/pythonlib
python3 setup.py clean
python3 setup.py install
+
+ package_glob_pattern="/usr/local/lib/python3.*/dist-packages/Tailslib*.egg"
+ if [ ! -f ${package_glob_pattern} ]; then
+ echo "Cannot find Tailslib Python package \"${package_glob_pattern}\"" >&2
+ exit 1
+ fi
+ strip_nondeterminism_wrapper --type zip "${package_glob_pattern}" 2>/dev/null
)
rm -rf /tmp/pythonlib