diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-11 11:32:55 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-11 11:32:55 (EDT) |
commit | 85645cdb199ac34012b1dfd35a505fea446b32c4 (patch) | |
tree | 0b75dd2580cf00e8375d0ef322bc02134549f5b5 /lib | |
parent | 6f7944014140be666220f983dc1fb93eefbb4e97 (diff) |
include_changes(): Output list of files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/include.sh | 8 |
1 files changed, 6 insertions, 2 deletions
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 } |