Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10677 - /trunk/libzypp/zypp/PoolQuery.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Mon, 28 Jul 2008 13:47:12 -0000
  • Message-id: <20080728134712.63A622BDDC@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Mon Jul 28 15:47:12 2008
New Revision: 10677

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10677&view=rev
Log:
- addRepo(): don't add repo condition if alias is empty

Modified:
trunk/libzypp/zypp/PoolQuery.cc

Modified: trunk/libzypp/zypp/PoolQuery.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/PoolQuery.cc?rev=10677&r1=10676&r2=10677&view=diff
==============================================================================
--- trunk/libzypp/zypp/PoolQuery.cc (original)
+++ trunk/libzypp/zypp/PoolQuery.cc Mon Jul 28 15:47:12 2008
@@ -774,6 +774,11 @@

void PoolQuery::addRepo(const std::string &repoalias)
{
+ if (repoalias.empty())
+ {
+ WAR << "ignoring an empty repository alias" << endl;
+ return;
+ }
_pimpl->_repos.insert(repoalias);
_pimpl->_flags &= ~SEARCH_ALL_REPOS;
}

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages