From 24aae46964c2cce4989df7f2b8e163683ce84ddf Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 1 Mar 2013 18:21:22 +0100 Subject: use list_packet_files in policykit.build --- remote/tools/policykit/policykit.build | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/remote/tools/policykit/policykit.build b/remote/tools/policykit/policykit.build index 079985ac..72d7f246 100644 --- a/remote/tools/policykit/policykit.build +++ b/remote/tools/policykit/policykit.build @@ -25,27 +25,9 @@ build () { COPYLIST="list_dpkg_output" [ -e "$COPYLIST" ] && rm "$COPYLIST" - touch "$COPYLIST" - - pinfo "determining required packages..." - if [ ! -z ${REQUIRED_PACKAGES} ] - then - for PACKAGE in ${REQUIRED_PACKAGES} - do - for FILE in $(dpkg -L ${PACKAGE} | grep -v share/doc | grep -v share/man) - do - [ ! -d $FILE ] && echo $FILE >> "$COPYLIST" - done - done - - # prepare target dir & copy there - if [ -s "$COPYLIST" ]; then - pinfo "using tar to copy all dependencies to $BUILDDIR" - tarcopy "$(cat "$COPYLIST" | sort -u)" "$BUILDDIR" - else - pinfo "no dependencies found!" - fi - fi + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "$BUILDDIR" cd - touch .built -- cgit v1.2.3-55-g7522