set architecture before generating whatprovides #367684
authorStefan Schubert <schubi@suse.de>
Thu, 6 Mar 2008 12:14:23 +0000 (12:14 +0000)
committerStefan Schubert <schubi@suse.de>
Thu, 6 Mar 2008 12:14:23 +0000 (12:14 +0000)
zypp/sat/detail/PoolImpl.cc

index d5fc51a44010058ed97f054e570b59540319d2bb..0a3dd6ebf8e35a30c12f09105b703dc9537310a1 100644 (file)
@@ -154,6 +154,8 @@ namespace zypp
         if ( _watcher.remember( _serial ) )
         {
           /* nothing to do here, but _watcher MUST remember... */
+         // set pool architecture
+          ::pool_setarch( _pool,  ZConfig::instance().systemArchitecture().asString().c_str() );
         }
         if ( ! _pool->whatprovides )
         {
@@ -176,7 +178,8 @@ namespace zypp
           {
             Arch::CompatSet sysarchs( Arch::compatSet( ZConfig::instance().systemArchitecture() ) );
             for_( it, sysarchs.begin(), sysarchs.end() )
-              sysids.insert( it->idStr().id() );
+              sysids.insert( it->idStr().id() );
+
             // unfortunately satsolver treats src/nosrc as architecture:
             sysids.insert( ARCH_SRC );
             sysids.insert( ARCH_NOSRC );