From 85645cdb199ac34012b1dfd35a505fea446b32c4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 11 Oct 2013 11:32:55 -0400 Subject: include_changes(): Output list of files. --- (limited to 'lib') diff --git a/lib/include.sh b/lib/include.sh index 77b9ce3..dab9e71 100644 --- a/lib/include.sh +++ b/lib/include.sh @@ -44,6 +44,7 @@ include_changes() local arch= local plat= local old_ver= + local files= local size= local sect= local file= @@ -107,6 +108,7 @@ include_changes() fi # Include each binary package. + files='' while read -r size sect file; do if [ "x${file##[ ]}" = 'x' ]; then continue @@ -118,14 +120,16 @@ include_changes() "${size}" "${sect}" "${pkg}" pool_file="pool/$(hash_name "${source}")/${source}" pool_file="${pool_file}/${pkg}_${binver}_${arch}_${plat}.opk" - cp -p "$(dirname "${changes}")/${file}" \ - "${opt_base_dir}/${pool_file}" + file="$(dirname "${changes}")/${file}" + files="${files} ${file}" + cp -p "${file}" "${opt_base_dir}/${pool_file}" feed_add_package "${chan}" "${dist}" "${arch}" "${plat}" \ "${sect}" "${pkg}" "${size}" "${pool_file}" done <<-EOF ${_include_files} EOF + printf '%s\n' ${files} return 0 } -- cgit v0.9.1