From c85012fed1c7610a4b31b4ea62a189cae449d521 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 16 Jul 2013 16:58:36 -0400 Subject: include: Clean up output. --- (limited to 'lib/cmd') diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh index a6dd05c..e38aab8 100644 --- a/lib/cmd/include.sh +++ b/lib/cmd/include.sh @@ -18,6 +18,8 @@ # along with this program. If not, see . use control +use locale +use output CMD_INCLUDE_CHANGES_FIELDS='Format Source Binary Version Architecture Platform Distribution Maintainer Changed-By Date Description Changes Files' @@ -76,7 +78,7 @@ cmd_include() mkdir -p "${pool_dist_db}" printf '%s\n' "${cmd_include_version}" \ >"${pool_dist_db}/version" - printf 'Including %s (%s) into %s:\n' "${cmd_include_source}" \ + info "$(get_msg 'cmd_include_including')" "${cmd_include_source}" \ "${cmd_include_version}" "${cmd_include_distribution}" while read -r size file; do if [ "x$(echo ${file})" = 'x' ]; then @@ -85,12 +87,6 @@ cmd_include() IFS='_' read -r pkg binver arch plat <<-EOF ${file%.opk} EOF - printf ' %s:\n' "${file}" - printf ' Package: %s\n' "${pkg}" - printf ' Version: %s\n' "${binver}" - printf ' Architecture: %s\n' "${arch}" - printf ' Platform: %s\n' "${plat}" - printf ' Size: %s\n' "${size}" printf '%s\n' "${pool_dir}/${file}" \ >>"${pool_dist_db}/files" cp -p "$(dirname "${changes}")/${file}" \ -- cgit v0.9.1