mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-09 15:54:06 +00:00
Imported using git-ubuntu import. Changelog parent: 7d39f42e935512bb488b3a64a6e38062e29af938 New changelog entries: * make the click package installation check for proper architecture before trying to install packages from the list, so that i386 touch builds do not fall over with "wrong architecture" failures at the click install step.
30 lines
772 B
Bash
Executable File
30 lines
772 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
echo "Setting up click packages"
|
|
|
|
click_uri=http://archive-team.internal/click_packages
|
|
click_list=$click_uri/click_list
|
|
click_db=/usr/share/click/preinstalled
|
|
|
|
mkdir -p -m 755 "$click_db"
|
|
chown clickpkg:clickpkg "$click_db"
|
|
|
|
tmpdir="$(mktemp -d)"
|
|
cleanup () { rm -rf "$tmpdir"; }
|
|
trap cleanup EXIT
|
|
|
|
CLICKARCH=$(dpkg --print-architecture)
|
|
|
|
wget --no-verbose -O "$tmpdir/click_list" "$click_list"
|
|
for package in $(cat "$tmpdir/click_list")
|
|
do
|
|
if echo $package | egrep -q _$CLICKARCH.click|_all.click|_unknown.click; then
|
|
echo "Setting up $package"
|
|
wget --no-verbose -O "$tmpdir/$package" "$click_uri/$package"
|
|
click install --force-missing-framework --root="$click_db" --all-users \
|
|
"$tmpdir/$package"
|
|
fi
|
|
done
|