Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10532 - in /trunk/libzypp/devel/devel.ma: NewPool.cc Tools.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 10 Jul 2008 16:08:44 -0000
  • Message-id: <20080710160844.718BD2F1F7@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Thu Jul 10 18:08:44 2008
New Revision: 10532

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10532&view=rev
Log:
backup

Modified:
trunk/libzypp/devel/devel.ma/NewPool.cc
trunk/libzypp/devel/devel.ma/Tools.h

Modified: trunk/libzypp/devel/devel.ma/NewPool.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.ma/NewPool.cc?rev=10532&r1=10531&r2=10532&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.ma/NewPool.cc (original)
+++ trunk/libzypp/devel/devel.ma/NewPool.cc Thu Jul 10 18:08:44 2008
@@ -489,15 +489,15 @@
if ( ! nrepo.enabled() )
continue;

- if ( ! repoManager.isCached( nrepo ) || /*force*/false )
+ if ( ! repoManager.isCached( nrepo ) || nrepo.type() ==
repo::RepoType::RPMPLAINDIR )
{
if ( repoManager.isCached( nrepo ) )
{
SEC << "cleanCache" << endl;
repoManager.cleanCache( nrepo );
}
- //SEC << "refreshMetadata" << endl;
- //repoManager.refreshMetadata( nrepo, RepoManager::RefreshForced );
+ SEC << "refreshMetadata" << endl;
+ repoManager.refreshMetadata( nrepo );
SEC << "buildCache" << endl;
repoManager.buildCache( nrepo );
}
@@ -533,7 +533,7 @@
}
}

- if ( 1 )
+ if ( 0 )
{
Measure x( "INIT TARGET" );
{

Modified: trunk/libzypp/devel/devel.ma/Tools.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.ma/Tools.h?rev=10532&r1=10531&r2=10532&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.ma/Tools.h (original)
+++ trunk/libzypp/devel/devel.ma/Tools.h Thu Jul 10 18:08:44 2008
@@ -45,6 +45,26 @@
}

///////////////////////////////////////////////////////////////////
+
+void mksrc( const std::string & url, const std::string & alias, RepoManager &
repoManager )
+{
+ RepoInfo nrepo;
+ nrepo
+ .setAlias( alias )
+ .setName( alias )
+ .setEnabled( true )
+ .setAutorefresh( false )
+ .addBaseUrl( Url(url) );
+
+ if ( ! repoManager.isCached( nrepo ) )
+ {
+ repoManager.buildCache( nrepo );
+ }
+
+ repoManager.loadFromCache( nrepo );
+}
+
+///////////////////////////////////////////////////////////////////
//
template<class _Condition>
struct SetTrue

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

< Previous Next >
This Thread
  • No further messages