live-build/ubuntu-touch/hooks/70-reconfigure-autopilot.chroot: Fix test

for whether a package is installed, and check for both python-autopilot
and python3-autopilot.
ubuntu/yakkety
Colin Watson 11 years ago
parent d455fcccd7
commit 807ee32efc

8
debian/changelog vendored

@ -1,3 +1,11 @@
livecd-rootfs (2.210) UNRELEASED; urgency=medium
* live-build/ubuntu-touch/hooks/70-reconfigure-autopilot.chroot: Fix test
for whether a package is installed, and check for both python-autopilot
and python3-autopilot.
-- Colin Watson <cjwatson@ubuntu.com> Fri, 16 May 2014 13:03:31 +0100
livecd-rootfs (2.209) utopic; urgency=medium livecd-rootfs (2.209) utopic; urgency=medium
* live-build/auto/config: Pass any additional command-line arguments on to * live-build/auto/config: Pass any additional command-line arguments on to

@ -7,4 +7,10 @@
echo "making sure phablet user is in the autopilot group" echo "making sure phablet user is in the autopilot group"
dpkg -l python-autopilot >/dev/null 2>&1 && dpkg-reconfigure python-autopilot for pkg in python-autopilot python3-autopilot; do
if dpkg-query -W -f '${Status}\n' "$pkg" 2>/dev/null | \
grep -q ' installed$'; then
dpkg-reconfigure "$pkg"
break
fi
done

Loading…
Cancel
Save