summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/23-fake-gnome-backgrounds
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/23-fake-gnome-backgrounds')
-rwxr-xr-xconfig/chroot_local-hooks/23-fake-gnome-backgrounds28
1 files changed, 3 insertions, 25 deletions
diff --git a/config/chroot_local-hooks/23-fake-gnome-backgrounds b/config/chroot_local-hooks/23-fake-gnome-backgrounds
index be606e1..cfd7eb2 100755
--- a/config/chroot_local-hooks/23-fake-gnome-backgrounds
+++ b/config/chroot_local-hooks/23-fake-gnome-backgrounds
@@ -5,31 +5,9 @@ set -u
echo "Install a fake gnome-backgrounds package"
-tmp="$(mktemp -d)"
-
-apt-get install --yes equivs
+# Import install_fake_package
+. /usr/local/lib/tails-shell-library/build.sh
REAL_PKG_VERSION=$(dpkg-query -W -f='${Version}\n' gnome-backgrounds)
FAKE_PKG_VERSION=${REAL_PKG_VERSION}+tails.fake1
-
-cat > "${tmp}"/gnome-backgrounds.control << EOF
-Section: gnome
-Priority: optional
-Homepage: https://tails.boum.org/
-Standards-Version: 3.9.6
-
-Package: gnome-backgrounds
-Version: ${FAKE_PKG_VERSION}
-Maintainer: Tails developers <amnesia@boum.org>
-Architecture: all
-Description: (Fake) gnome-backgrounds
- Make it possible to install gnome-shell without having to
- install a real gnome-backgrounds package.
-EOF
-
-(
- cd "${tmp}"
- equivs-build "${tmp}"/gnome-backgrounds.control
- dpkg -i "${tmp}"/gnome-backgrounds_"${FAKE_PKG_VERSION}"_all.deb
-)
-rm -R "${tmp}"
+install_fake_package gnome-backgrounds "${FAKE_PKG_VERSION}" gnome