- dont report outdated for the system repo
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 18 Aug 2008 15:40:23 +0000 (15:40 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 18 Aug 2008 15:40:23 +0000 (15:40 +0000)
zypp/Repository.cc

index 5c4aa44..3e6ddf3 100644 (file)
@@ -78,9 +78,13 @@ namespace zypp
             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 @@ namespace zypp
             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();
     }