From cc04fd727f847bff912e8d8d3a14b06765928fb5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 04 Jan 2021 18:59:00 -0500 Subject: cmd/build: List built files This makes use of the extra space between the "Build Results" and "*.changes" headers. --- diff --git a/src/cmd/build.sh b/src/cmd/build.sh index 81e7343..3a3da4f 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -110,6 +110,7 @@ _cmd_build_build() local build_date= local es= local changes= + local opks= local opk= local build_time= @@ -163,11 +164,13 @@ _cmd_build_build() changes="${_cmd_build_pkg_dir}/../$(: \ )${source}_${version}_${host_arch}_${host_plat}.changes" if [ -r "${changes}" ]; then + opks="$(sed -n '/^Files:/,${ s/^ [0-9][0-9]* ..* //p; };' \ + "${changes}")" _cmd_build_header '-' 'Build Results' + printf '%s\n' "${changes##*/}" ${opks} _cmd_build_header '~' "${changes##*/}" cat "${changes}" - for opk in $(sed -n '/^Files:/,${ s/^ [0-9][0-9]* ..* //p; };' \ - "${changes}"); do + for opk in ${opks}; do _cmd_build_header '~' "${opk}" opk="${_cmd_build_pkg_dir}/../${opk}" tar -xzOf "${opk}" control.tar.gz | tar -xzO ./control -- cgit v0.9.1