Mailinglist Archive: zypp-devel (64 mails)
| < Previous | Next > |
[zypp-devel] Re: Detecting non-synced repos
- From: Michael Andres <ma@xxxxxxx>
- Date: Mon, 14 Jul 2008 10:15:41 +0200
- Message-id: <20080714081541.GA1575@xxxxxxx>
On Sat, Jul 12, Duncan Mac-Vicar P. wrote:
Why class Repository? This requires to load the .solv into the pool, just
to be able to access these data. Wouldn't you like to have this informatin
in advance.
I would expect this to be offered by RepoInfo, retrieving the data
directly from the .solv file / repomd.xml, if not yet loaded into
the pool.
for ( all repoInfos )
if ( ! repoInfo.enabled() )
continue
refreshIfNeeded( repoInfo );
if ( repoInfo.maybeOutdated()
&& userWntsToSkipIt() )
continue
loadFromCache( repoInfo );
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
This enhances zypp::Repository class API as follows:
zypp::Date Repository::generatedTimestamp() const;
zypp::Date Repository::suggestedExpirationTimestamp() const;
bool Repository::maybeOutdated() const;
Why class Repository? This requires to load the .solv into the pool, just
to be able to access these data. Wouldn't you like to have this informatin
in advance.
I would expect this to be offered by RepoInfo, retrieving the data
directly from the .solv file / repomd.xml, if not yet loaded into
the pool.
for ( all repoInfos )
if ( ! repoInfo.enabled() )
continue
refreshIfNeeded( repoInfo );
if ( repoInfo.maybeOutdated()
&& userWntsToSkipIt() )
continue
loadFromCache( repoInfo );
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |