repo-add: print the name of the database when extracting

Currently this prints the following message:
==> Extracting database to a temporary location...
==> Extracting database to a temporary location...

This redundancy is potentially confusing and may cause people to think
something is wrong. Historically, this message came from a time when we
only extracted one database, but repo-add was changed to always create
the files database in commit cb0f2bd038
and whole code block with message intact was moved into a for loop and
run (and printed) twice.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2018-10-31 13:12:34 -04:00 committed by Allan McRae
parent 3dfec574a3
commit de915c4f14

View file

@ -543,7 +543,7 @@ prepare_repo_db() {
fi
fi
verify_signature "$dbfile"
msg "$(gettext "Extracting database to a temporary location...")"
msg "$(gettext "Extracting %s to a temporary location...")" "${dbfile##*/}"
bsdtar -xf "$dbfile" -C "$tmpdir/$repo"
else
case $cmd in