From 68e78ecd529a41fdb5f8e00511045efb52c819c6 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 13 Oct 2014 18:41:23 +0100 Subject: [PATCH] Fix manifest_tail computation. --- .../ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot b/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot index 4cd60c7b..264324fe 100755 --- a/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot +++ b/live-build/ubuntu-touch/hooks/90-precompile-apparmor-policies.chroot @@ -21,7 +21,8 @@ for manifest in /var/lib/apparmor/clicks/*; do # FIXME: if this code survives for very long, it should probably be # rewritten using click's Python bindings pkgdir="$(click pkgdir "$manifest")" - manifest_tail="${manifest#$pkgdir}" + manifest_real="$(readlink -f "$manifest")" + manifest_tail="${manifest_real#$pkgdir}" # Does this package exist in the custom tarball? If so, move its # profiles there (if it only exists in custom) or copy them (if it # also exists in core).