From d3bb18a3f7ac78beae7bf639f278e73eb1dd0dbb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 30 Apr 2014 17:13:02 -0400 Subject: lib/index.sh: Add some verbose output. --- diff --git a/lib/index.sh b/lib/index.sh index ad3826f..4c7289f 100644 --- a/lib/index.sh +++ b/lib/index.sh @@ -36,6 +36,9 @@ feed_add_package() local feed_hash_idx= local old_dir= + info_v "$(get_msg 'feed_adding')" "${pkg}" \ + "${chan}" "${dist}" "${arch}" "${plat}" "${sect}" + pkg_hash="$(hash_name "${pkg}")" # Add package metadata to feed hash index. @@ -71,6 +74,9 @@ feed_remove_package() local feed_hash_idx= local old_dir= + info_v "$(get_msg 'feed_removing')" "${pkg}" \ + "${chan}" "${dist}" "${arch}" "${plat}" "${sect}" + pkg_hash="$(hash_name "${pkg}")" # Remove package metadata from feed hash index. @@ -103,6 +109,8 @@ update_feeds() local hash_dirent= local idx= + info_v "$(get_msg 'updating_feeds')" + # For each suite: for suite_dirent in "${base_dir}/feeds/.db/"*_*/; do if [ ! -d "${suite_dirent}" ]; then diff --git a/locale/en_US/pro_archman.sh b/locale/en_US/pro_archman.sh index f066d31..a01aa33 100644 --- a/locale/en_US/pro_archman.sh +++ b/locale/en_US/pro_archman.sh @@ -83,3 +83,8 @@ msg_pro_archman_control_duplicate_field='duplicate field "%s"' msg_pro_archman_control_found_contination='found continuation line where expected start of field' msg_pro_archman_list_item_separator=', ' msg_pro_archman_control_missing_fields='missing fields: %s' + +# lib/index.sh +msg_pro_archman_feed_adding='Adding package %s to feed %s/%s/%s/%s/%s...' +msg_pro_archman_feed_removing='Removing package %s to feed %s/%s/%s/%s/%s...' +msg_pro_archman_updating_feeds='Updating feeds...' -- cgit v0.9.1