[zypp-commit] r10878 - /trunk/libzypp/zypp/Repository.cc
Author: dmacvicar Date: Mon Aug 18 17:40:23 2008 New Revision: 10878 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10878&view=rev Log: - dont report outdated for the system repo Modified: trunk/libzypp/zypp/Repository.cc Modified: trunk/libzypp/zypp/Repository.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Repository.cc?rev=10878&r1=10877&r2=10878&view=diff ============================================================================== --- trunk/libzypp/zypp/Repository.cc (original) +++ trunk/libzypp/zypp/Repository.cc Mon Aug 18 17:40:23 2008 @@ -78,9 +78,13 @@ while (::dataiterator_step(&di)); } else - ERR << "the extra does not exist in the repo" << endl; - - return Date(); + { + if ( isSystemRepo() ) + return 0; + ERR << "the attribute generated timestamp does not exist in the repo" << endl; + } + + return Date(); } @@ -104,14 +108,22 @@ while (::dataiterator_step(&di)); } else - ERR << "the extra does not exist in the repo" << endl; - - return Date(); + { + if ( isSystemRepo() ) + return 0; + ERR << "the attribute suggested expiration timestamp does not exist in the repo" << endl; + } + + return Date(); } bool Repository::maybeOutdated() const { + // system repo is not mirrored + if ( isSystemRepo() ) + return false; + return suggestedExpirationTimestamp() < Date::now(); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org