summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/include.sh8
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
}