commit 8be261d06843f8eaefb6fe347f364c0a8dde58bb
Author: Ján Kupec
Date: Mon Jan 19 10:21:08 2009 +0100
better variable name
---
src/Zypper.cc | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/Zypper.cc b/src/Zypper.cc
index 4ad8d83..181340a 100644
--- a/src/Zypper.cc
+++ b/src/Zypper.cc
@@ -2845,10 +2845,11 @@ void Zypper::doCommand()
return;
}
- bool non_alias = copts.count("all") || copts.count("local") ||
+ bool aggregate =
+ copts.count("all") || copts.count("local") ||
copts.count("remote") || copts.count("medium-type");
- if (_arguments.size() < 1 && !non_alias)
+ if (_arguments.size() < 1 && !aggregate)
{
// translators: aggregate option is e.g. "--all". This message will be
// followed by mr command help text which will explain it
@@ -2860,7 +2861,7 @@ void Zypper::doCommand()
}
// too many arguments
- if (_arguments.size() && non_alias)
+ if (_arguments.size() && aggregate)
{
report_too_many_arguments(_command_help);
setExitCode(ZYPPER_EXIT_ERR_INVALID_ARGS);
@@ -2869,7 +2870,7 @@ void Zypper::doCommand()
initRepoManager();
- if (non_alias)
+ if (aggregate)
{
modify_repos_by_option(*this);
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org