From 103391af25be259721d647d7970f1d08737ff90a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 30 Apr 2014 17:16:41 -0400 Subject: Move suite-related messages. --- (limited to 'lib') diff --git a/lib/cmd/copy-suite.sh b/lib/cmd/copy-suite.sh index 304b3fd..987fb45 100644 --- a/lib/cmd/copy-suite.sh +++ b/lib/cmd/copy-suite.sh @@ -41,8 +41,6 @@ cmd_copy_suite_main() dst_chan="${conf_incoming_channel}" fi - info "$(get_msg 'cmd_copy_suite_copying')" \ - "${src_chan}" "${src_dist}" "${dst_chan}" "${dst_dist}" copy_suite "${src_chan}" "${src_dist}" "${dst_chan}" "${dst_dist}" fini diff --git a/lib/cmd/remove-suite.sh b/lib/cmd/remove-suite.sh index 5fbc46c..5fc24ae 100644 --- a/lib/cmd/remove-suite.sh +++ b/lib/cmd/remove-suite.sh @@ -33,8 +33,6 @@ cmd_remove_suite_main() chan="${conf_incoming_channel}" fi - info "$(get_msg 'cmd_remove_suite_removing')" \ - "${chan}" "${dist}" remove_suite "${chan}" "${dist}" fini diff --git a/lib/suite.sh b/lib/suite.sh index 9a55809..4de39ef 100644 --- a/lib/suite.sh +++ b/lib/suite.sh @@ -23,6 +23,8 @@ _SUITE_SM=1 use db use dir use remove +use locale +use output copy_suite() { @@ -31,6 +33,9 @@ copy_suite() local dst_chan="${3}" local dst_dist="${4}" + info "$(get_msg 'suite_copying')" \ + "${src_chan}" "${src_dist}" "${dst_chan}" "${dst_dist}" + remove_suite "${dst_chan}" "${dst_dist}" db_foreach_source "${src_chan}" "${src_dist}" _suite_copy_source \ @@ -42,6 +47,9 @@ remove_suite() local chan="${1}" local dist="${2}" + info "$(get_msg 'suite_removing')" \ + "${chan}" "${dist}" + db_foreach_source "${chan}" "${dist}" _suite_remove_source } -- cgit v0.9.1