From d083723d88c1958f2aa5b8b2676d5795c1a384cd Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 5 Sep 2013 11:28:41 +0100 Subject: [PATCH] Use new multiple-database scheme in click 0.4.3 to preinstall click packages. --- debian/changelog | 7 +++++++ .../ubuntu-touch/hooks/60-install-click.chroot | 13 ++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index cc5146cd..5acedc43 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.181) UNRELEASED; urgency=low + + * Use new multiple-database scheme in click 0.4.3 to preinstall click + packages. + + -- Colin Watson Thu, 05 Sep 2013 11:28:15 +0100 + livecd-rootfs (2.180) saucy; urgency=low * make sure the NM configuration mangling of touch images uses the sudo and diff --git a/live-build/ubuntu-touch/hooks/60-install-click.chroot b/live-build/ubuntu-touch/hooks/60-install-click.chroot index bf9737ad..f90b4ba0 100755 --- a/live-build/ubuntu-touch/hooks/60-install-click.chroot +++ b/live-build/ubuntu-touch/hooks/60-install-click.chroot @@ -6,12 +6,19 @@ echo "Setting up click packages" click_uri=http://archive-team.internal/click_packages click_list=$click_uri/click_list -click_dir=/usr/share/preinstalled/click +click_db=/usr/share/click/preinstalled -mkdir -p "$click_dir" +mkdir -p -m 755 "$click_db" +chown clickpkg:clickpkg "$click_db" + +tmpdir="$(mktemp -d)" +cleanup () { rm -rf "$tmpdir"; } +trap cleanup EXIT for package in $(wget -qO- "$click_list") do echo "Setting up $package" - wget --no-verbose -O "$click_dir"/"$package" "$click_uri"/"$package" + wget --no-verbose -O "$tmpdir/$package" "$click_uri/$package" + click install --force-missing-framework --root="$click_db" --all-users \ + "$tmpdir/$package" done