Make the repo-add quiet flag less quiet

Considering one can easily run:
   repo-add .... >/dev/null
to get only warnings and errors, the -q flag is mostly useless.

Make the -q flag silence only level 2 messages.

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Aaron Griffin 2008-12-12 00:02:19 -06:00 committed by Dan McGee
parent 7a3a718c7a
commit a9f030e84c

View file

@ -34,7 +34,6 @@ REPO_DB_FILE=""
umask 0022 umask 0022
msg() { msg() {
[ $QUIET -ne 0 ] && return
local mesg=$1; shift local mesg=$1; shift
printf "==> ${mesg}\n" "$@" >&1 printf "==> ${mesg}\n" "$@" >&1
} }
@ -68,8 +67,8 @@ repo-remove will update a package database by removing the package name\n\
specified on the command line from the given repo database. Multiple\n\ specified on the command line from the given repo database. Multiple\n\
packages to remove can be specified on the command line.\n\n")" packages to remove can be specified on the command line.\n\n")"
printf "$(gettext "\ printf "$(gettext "\
The -q/--quiet flag to either program will force silent running except\n\ Use the -q/--quiet flag to minimize output to basic messages, warnings,\n\
in the case of warnings or errors.\n\n")" and errors\n\n")"
echo "$(gettext "Example: repo-add /path/to/repo.db.tar.gz pacman-3.0.0.pkg.tar.gz")" echo "$(gettext "Example: repo-add /path/to/repo.db.tar.gz pacman-3.0.0.pkg.tar.gz")"
echo "$(gettext "Example: repo-remove /path/to/repo.db.tar.gz kernel26")" echo "$(gettext "Example: repo-remove /path/to/repo.db.tar.gz kernel26")"
} }