summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-10-31 13:12:34 -0400
committerAllan McRae <allan@archlinux.org>2018-11-03 21:57:03 +1000
commitde915c4f145d6e985c3c0fdf8fe121b5066d711c (patch)
tree80b226a3569a27a2c120f7fe26d4802b50fceaa6
parent3dfec574a36b6aacc2004df3e122dae9d17a4b0d (diff)
downloadpacman-de915c4f145d6e985c3c0fdf8fe121b5066d711c.tar.gz
pacman-de915c4f145d6e985c3c0fdf8fe121b5066d711c.zip
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 cb0f2bd0385f447e045e2b2aab9ffa55df3c2d8a 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>
-rw-r--r--scripts/repo-add.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index cff52d4e..bccf2f37 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -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