People have mentioned that the silent upgrade to DB version 9 when no
adjustments are needed for directory symlinks is confusion.  Always print
the upgrading message.

Signed-off-by: Allan McRae <[email protected]>
---
 scripts/pacman-db-upgrade.sh.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/pacman-db-upgrade.sh.in b/scripts/pacman-db-upgrade.sh.in
index 7bb277b..7b360c3 100644
--- a/scripts/pacman-db-upgrade.sh.in
+++ b/scripts/pacman-db-upgrade.sh.in
@@ -167,6 +167,8 @@ if [[ -z "$db_version" ]]; then
        fi
 
        # pacman 4.1 to 4.2 upgrade - remove directory symlink support
+       msg "$(gettext "Pre-4.2 database format detected - upgrading...")"
+
        dirlist=()
 
        unset GREP_OPTIONS
@@ -180,8 +182,6 @@ if [[ -z "$db_version" ]]; then
                done)
 
        if [[ ${#dirlist[@]} != 0 ]]; then
-               msg "$(gettext "Pre-4.2 database format detected - 
upgrading...")"
-
                pacroot="$(resolve_dir "$pacroot")"
 
                for dir in "${dirlist[@]}"; do
-- 
2.2.1

Reply via email to