Author: mlandres
Date: Tue Feb 12 16:16:16 2008
New Revision: 8632
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8632&view=rev
Log:
filter unwanted architectures from pool
Modified:
branches/tmp/ma/jump_sat/libzypp/zypp/Arch.h
branches/tmp/ma/jump_sat/libzypp/zypp/parser/susetags/PackagesFileReader.cc
branches/tmp/ma/jump_sat/libzypp/zypp/sat/Repo.cc
branches/tmp/ma/jump_sat/libzypp/zypp/sat/detail/PoolImpl.cc
branches/tmp/ma/jump_sat/libzypp/zypp/sat/detail/PoolImpl.h
Modified: branches/tmp/ma/jump_sat/libzypp/zypp/Arch.h
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/Arch.h?rev=8632&r1=8631&r2=8632&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/zypp/Arch.h (original)
+++ branches/tmp/ma/jump_sat/libzypp/zypp/Arch.h Tue Feb 12 16:16:16 2008
@@ -17,10 +17,12 @@
#include <set>
#include <string>
-#include "zypp/RelCompare.h"
#include "zypp/base/String.h"
#include "zypp/base/Iterator.h"
+#include "zypp/IdStringType.h"
+#include "zypp/RelCompare.h"
+
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
@@ -42,10 +44,13 @@
public:
/** String representation of Arch. */
+ IdString idStr() const
+ { return IdString( asString() ); }
+ /** \overload */
const std::string & asString() const;
/** \overload */
- const std::string & string() const
- { return asString(); }
+ const char * c_str() const
+ { return asString().c_str(); }
/** Test for an empty Arch (this is "", not Arch_noarch). */
bool empty() const
Modified: branches/tmp/ma/jump_sat/libzypp/zypp/parser/susetags/PackagesFileReader.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/parser/susetags/PackagesFileReader.cc?rev=8632&r1=8631&r2=8632&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/zypp/parser/susetags/PackagesFileReader.cc (original)
+++ branches/tmp/ma/jump_sat/libzypp/zypp/parser/susetags/PackagesFileReader.cc Tue Feb 12 16:16:16 2008
@@ -167,7 +167,7 @@
switch ( str::split( tag_r->value, std::back_inserter(words) ) )
{
case 2: // [medianr filename]
- _data->repositoryLocation.setLocation( Pathname(_data->arch.string()) / words[1],
+ _data->repositoryLocation.setLocation( Pathname(_data->arch.asString()) / words[1],
str::strtonum<unsigned>(words[0]) );
break;
Modified: branches/tmp/ma/jump_sat/libzypp/zypp/sat/Repo.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/sat/Repo.cc?rev=8632&r1=8631&r2=8632&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/zypp/sat/Repo.cc (original)
+++ branches/tmp/ma/jump_sat/libzypp/zypp/sat/Repo.cc Tue Feb 12 16:16:16 2008
@@ -138,6 +138,8 @@
{
ZYPP_THROW( Exception( _("Error reading solv-file: ")+file_r.asString() ) );
}
+
+
}
detail::SolvableIdType Repo::addSolvables( unsigned count_r )
Modified: branches/tmp/ma/jump_sat/libzypp/zypp/sat/detail/PoolImpl.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/sat/detail/PoolImpl.cc?rev=8632&r1=8631&r2=8632&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/zypp/sat/detail/PoolImpl.cc (original)
+++ branches/tmp/ma/jump_sat/libzypp/zypp/sat/detail/PoolImpl.cc Tue Feb 12 16:16:16 2008
@@ -12,13 +12,15 @@
#include <iostream>
#include