Mailinglist Archive: zypp-commit (194 mails)
| < Previous | Next > |
[zypp-commit] r10325 - /trunk/zypper/src/zypper-repos.cc
- From: jkupec@xxxxxxxxxxxxxxxx
- Date: Tue, 03 Jun 2008 09:28:33 -0000
- Message-id: <20080603092833.C85A134EC5@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Tue Jun 3 11:28:33 2008
New Revision: 10325
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10325&view=rev
Log:
- remove upper priority limit
Modified:
trunk/zypper/src/zypper-repos.cc
Modified: trunk/zypper/src/zypper-repos.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-repos.cc?rev=10325&r1=10324&r2=10325&view=diff
==============================================================================
--- trunk/zypper/src/zypper-repos.cc (original)
+++ trunk/zypper/src/zypper-repos.cc Tue Jun 3 11:28:33 2008
@@ -1634,9 +1634,10 @@
string prio_str = *tmp1->second.begin();
safe_lexical_cast(prio_str, prio); // try to make an int out of the
string
- if (prio < 1 || prio > 99)
+ if (prio < 1)
{
zypper.out().error(boost::str(format(
+ //! \todo Don't tell about the upper limit and use %d instead of
number.
_("Invalid priority '%s'. Use an integer number between 1 (highest
priority) and 99 (lowest priority)."))
% prio_str));
zypper.setExitCode(ZYPPER_EXIT_ERR_INVALID_ARGS);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
Date: Tue Jun 3 11:28:33 2008
New Revision: 10325
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10325&view=rev
Log:
- remove upper priority limit
Modified:
trunk/zypper/src/zypper-repos.cc
Modified: trunk/zypper/src/zypper-repos.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-repos.cc?rev=10325&r1=10324&r2=10325&view=diff
==============================================================================
--- trunk/zypper/src/zypper-repos.cc (original)
+++ trunk/zypper/src/zypper-repos.cc Tue Jun 3 11:28:33 2008
@@ -1634,9 +1634,10 @@
string prio_str = *tmp1->second.begin();
safe_lexical_cast(prio_str, prio); // try to make an int out of the
string
- if (prio < 1 || prio > 99)
+ if (prio < 1)
{
zypper.out().error(boost::str(format(
+ //! \todo Don't tell about the upper limit and use %d instead of
number.
_("Invalid priority '%s'. Use an integer number between 1 (highest
priority) and 99 (lowest priority)."))
% prio_str));
zypper.setExitCode(ZYPPER_EXIT_ERR_INVALID_ARGS);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |