Mailinglist Archive: zypp-commit (185 mails)
| < Previous | Next > |
[zypp-commit] r10878 - /trunk/libzypp/zypp/Repository.cc
- From: dmacvicar@xxxxxxxxxxxxxxxx
- Date: Mon, 18 Aug 2008 15:40:23 -0000
- Message-id: <20080818154023.7A2E72E354@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |